From 705b2f92d7567ff0571c781d0900ead39e966663 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 9 Nov 2021 17:27:54 -0800 Subject: [PATCH] Install ace-link for quick link jumps --- ha-config.org | 9 ++++----- ha-org.org | 7 ++++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ha-config.org b/ha-config.org index 1f601cb..a7299fb 100644 --- a/ha-config.org +++ b/ha-config.org @@ -1019,14 +1019,13 @@ Web pages look pretty good with EWW, but I'm having difficulty getting it to ren :config (define-key eww-mode-map (kbd "L") #'eww-list-bookmarks) (define-key eww-buffers-mode-map (kbd "q") #'eww-bookmark-kill) - (define-key eww-bookmark-mode-map (kbd "q") #'eww-bookmark-kill) - - (use-package ace-link - :config - (ace-link-setup-default))) + (define-key eww-bookmark-mode-map (kbd "q") #'eww-bookmark-kill)) #+END_SRC +And let's get [[https://github.com/abo-abo/ace-link][ace-link]] to work with EWW and Info pages: #+BEGIN_SRC emacs-lisp + (use-package ace-link :config + (ace-link-setup-default)) #+END_SRC ** VTerm diff --git a/ha-org.org b/ha-org.org index 2ddd09d..e75607c 100644 --- a/ha-org.org +++ b/ha-org.org @@ -285,7 +285,8 @@ Bindings specific to org files: (general-evil-define-key 'normal org-mode-map :prefix "SPC m" "e" '("exports" . org-export-dispatch) - "y" '("insert link" . org-insert-link) + "l" '("insert link" . org-insert-link) + "o" '("goto link" . ace-link-org) "n" '(:ignore t :which-key "narrow") "n s" '("subtree" . org-narrow-to-subtree) @@ -293,6 +294,10 @@ Bindings specific to org files: "n e" '("element" . org-narrow-to-element) "n w" '("widen" . widen)) #+END_SRC +Oh, and we'll use [[https://github.com/abo-abo/ace-link][ace-link]] for quickly jumping: +#+BEGIN_SRC emacs-lisp +(define-key org-mode-map (kbd "M-o") 'ace-link-org) +#+END_SRC * Supporting Packages At this point, we assume that the =use-package= for org is complete, so we can close it and allow other projects to be loaded: #+BEGIN_SRC emacs-lisp