diff options
author | Case Duckworth | 2021-09-06 12:52:35 -0500 |
---|---|---|
committer | Case Duckworth | 2021-09-06 12:52:35 -0500 |
commit | 975664e6cf99719a21ccedd0fdd176ca9afad630 (patch) | |
tree | 7a23f7b344d9032e8d91eef20a0729bdf5d1de06 | |
parent | Add various git modes (diff) | |
download | emacs-975664e6cf99719a21ccedd0fdd176ca9afad630.tar.gz emacs-975664e6cf99719a21ccedd0fdd176ca9afad630.zip |
Bind ; to link-hint-open-link in various modes
-rw-r--r-- | init.el | 10 |
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 | |||
1157 | browser defined in `browse-url-secondary-browser-function'." | 1157 | browser 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))) |