diff options
-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))) |