Bind ; to link-hint-open-link in various modes
This commit is contained in:
parent
95d592bb66
commit
975664e6cf
10
init.el
10
init.el
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue