summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-10-04 00:28:20 +0100
committerjao <jao@gnu.org>2021-10-04 00:28:20 +0100
commit069d6132f3c7415a22d9f00e533ad14d55d95e15 (patch)
treec9ae9e7565f50021b47f35c24c58c672cfbf9522
parent78e9e7ca8199ba1341bea7e664678fa8d02f8402 (diff)
downloadelibs-069d6132f3c7415a22d9f00e533ad14d55d95e15.tar.gz
elibs-069d6132f3c7415a22d9f00e533ad14d55d95e15.tar.bz2
imenu bits
-rw-r--r--completion.org10
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