Replace link-hint with ace-link, enable goto-address-mode

This commit is contained in:
Evie Litherland-Smith 2025-02-10 10:46:42 +00:00
parent 45e8cf7bbf
commit fb6cad4142

21
init.el
View file

@ -950,16 +950,23 @@
:map comint-mode-map :map comint-mode-map
("<remap> <comint-history-isearch-backward-regexp>" . consult-history))) ("<remap> <comint-history-isearch-backward-regexp>" . consult-history)))
(use-package goto-addr
:hook ((text-mode . goto-address-mode)
(prog-mode . goto-address-prog-mode)))
(use-package avy (use-package avy
:if (package-installed-p 'avy) :if (package-installed-p 'avy)
:bind (("<remap> <goto-char>" . avy-goto-char) :bind (("<remap> <goto-char>" . avy-goto-char)))
("<remap> <goto-line>" . avy-goto-line)
("M-g w" . ave-goto-word)))
(use-package link-hint (use-package ace-link
:if (package-installed-p 'link-hint) :if (package-installed-p 'ace-link)
:bind (("M-g l o" . link-hint-open-link) :after goto-addr
("M-g l c" . link-hint-copy-link))) :functions (ace-link-setup-default)
:bind (("M-o" . ace-link-addr))
:init
(require 'avy)
:config
(ace-link-setup-default))
(use-package tempel (use-package tempel
:if (package-installed-p 'tempel) :if (package-installed-p 'tempel)