Bind ; to link-hint-open-link in various modes

This commit is contained in:
Case Duckworth 2021-09-06 12:52:35 -05:00
parent 95d592bb66
commit 975664e6cf
1 changed files with 9 additions and 1 deletions

10
init.el
View File

@ -1157,7 +1157,15 @@ That is, a prefix argument (\\[universal-argument]) will open the
browser defined in `browse-url-secondary-browser-function'."
(interactive "P")
(avy-with link-hint-open-link
(link-hint--one (if arg :open-secondary :open))))))
(link-hint--one (if arg :open-secondary :open)))))
;; Setup for different modes.
;; There has /got/ to be an easier way here!
(let ((key ";"))
(:with-mode special-mode (:bind key #'link-hint-open-link))
(:with-mode help-mode (:bind key #'link-hint-open-link))
(:with-feature helpful (:bind key #'link-hint-open-link))
(:with-mode Info-mode (:bind key #'link-hint-open-link))))
(setup (:straight lua-mode)
(:file-match (rx ".lua" eos)))