From fb6cad41424918f5ad42210cec35247ff94ff0fa Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 10 Feb 2025 10:46:42 +0000 Subject: [PATCH] Replace link-hint with ace-link, enable goto-address-mode --- init.el | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 2af65fa..e35aeb5 100644 --- a/init.el +++ b/init.el @@ -950,16 +950,23 @@ :map comint-mode-map (" " . consult-history))) +(use-package goto-addr + :hook ((text-mode . goto-address-mode) + (prog-mode . goto-address-prog-mode))) + (use-package avy :if (package-installed-p 'avy) - :bind ((" " . avy-goto-char) - (" " . avy-goto-line) - ("M-g w" . ave-goto-word))) + :bind ((" " . avy-goto-char))) -(use-package link-hint - :if (package-installed-p 'link-hint) - :bind (("M-g l o" . link-hint-open-link) - ("M-g l c" . link-hint-copy-link))) +(use-package ace-link + :if (package-installed-p 'ace-link) + :after goto-addr + :functions (ace-link-setup-default) + :bind (("M-o" . ace-link-addr)) + :init + (require 'avy) + :config + (ace-link-setup-default)) (use-package tempel :if (package-installed-p 'tempel)