From 41afd084ba6ea7cab92a1160cc62ef75ffe2a946 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 15 Nov 2022 19:51:40 -0600 Subject: Add link-hint --- init.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 0bd11d4..bf52e4f 100644 --- a/init.el +++ b/init.el @@ -906,6 +906,21 @@ CAPES defaults to `+capes'. CAPF will be made un-exclusive." (sesman "https://github.com/vspinu/sesman")) :when (executable-find "clojure")) +(yoke (link-hint "https://github.com/noctuid/link-hint.el/") + :depends ((avy "https://github.com/abo-abo/avy")) + (require '+link-hint) + (+link-hint-open-secondary-setup) + (+link-hint-open-chrome-setup) + (setf link-hint-avy-style 'at-full + link-hint-avy-all-windows t) + (global-set-key (kbd "M-l") +link-hint-map) + (define-key* +link-hint-map + "M-l" #'+link-hint-open-link "l" #'+link-hint-open-link + "M-o" #'+link-hint-open-secondary "o" #'+link-hint-open-secondary + "M-m" #'+link-hint-open-multiple-links "m" #'+link-hint-open-multiple-links + "M-w" #'link-hint-copy-link "w" #'link-hint-copy-link + "M-c" #'+link-hint-open-chrome "c" #'+link-hint-open-chrome)) + (yoke browse-url (require '+browse-url) (setf browse-url-browser-function #'eww-browse-url -- cgit 1.4.1-21-gabe81