From 975664e6cf99719a21ccedd0fdd176ca9afad630 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 6 Sep 2021 12:52:35 -0500 Subject: Bind ; to link-hint-open-link in various modes --- init.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 01650c7..980bf6c 100644 --- a/init.el +++ b/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))) -- cgit 1.4.1-21-gabe81