about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-09-06 12:52:35 -0500
committerCase Duckworth2021-09-06 12:52:35 -0500
commit975664e6cf99719a21ccedd0fdd176ca9afad630 (patch)
tree7a23f7b344d9032e8d91eef20a0729bdf5d1de06
parentAdd various git modes (diff)
downloademacs-975664e6cf99719a21ccedd0fdd176ca9afad630.tar.gz
emacs-975664e6cf99719a21ccedd0fdd176ca9afad630.zip
Bind ; to link-hint-open-link in various modes
-rw-r--r--init.el10
1 files changed, 9 insertions, 1 deletions
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
1157browser defined in `browse-url-secondary-browser-function'." 1157browser defined in `browse-url-secondary-browser-function'."
1158 (interactive "P") 1158 (interactive "P")
1159 (avy-with link-hint-open-link 1159 (avy-with link-hint-open-link
1160 (link-hint--one (if arg :open-secondary :open)))))) 1160 (link-hint--one (if arg :open-secondary :open)))))
1161
1162 ;; Setup for different modes.
1163 ;; There has /got/ to be an easier way here!
1164 (let ((key ";"))
1165 (:with-mode special-mode (:bind key #'link-hint-open-link))
1166 (:with-mode help-mode (:bind key #'link-hint-open-link))
1167 (:with-feature helpful (:bind key #'link-hint-open-link))
1168 (:with-mode Info-mode (:bind key #'link-hint-open-link))))
1161 1169
1162(setup (:straight lua-mode) 1170(setup (:straight lua-mode)
1163 (:file-match (rx ".lua" eos))) 1171 (:file-match (rx ".lua" eos)))