diff options
author | jao <jao@gnu.org> | 2021-10-04 00:28:20 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-10-04 00:28:20 +0100 |
commit | 069d6132f3c7415a22d9f00e533ad14d55d95e15 (patch) | |
tree | c9ae9e7565f50021b47f35c24c58c672cfbf9522 | |
parent | 78e9e7ca8199ba1341bea7e664678fa8d02f8402 (diff) | |
download | elibs-069d6132f3c7415a22d9f00e533ad14d55d95e15.tar.gz elibs-069d6132f3c7415a22d9f00e533ad14d55d95e15.tar.bz2 |
imenu bits
-rw-r--r-- | completion.org | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/completion.org b/completion.org index b5a6e2e..ee87ed4 100644 --- a/completion.org +++ b/completion.org @@ -441,3 +441,13 @@ (add-to-list 'embark-keymap-alist '(spotify-search-item . spotify-item-keymap))) #+end_src +* imenu + #+begin_src emacs-lisp + (use-package imenu + :init (setq org-imenu-depth 7) + :config + (defun jao-imenu-hook () + (when (derived-mode-p 'org-mode) + (org-reveal t))) + (add-hook 'imenu-after-jump-hook #'jao-imenu-hook)) + #+end_src |