summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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