Recenter after selecting imenu entry

This commit is contained in:
contrapunctus 2022-01-21 00:16:14 +05:30
parent 7aedd2b6fd
commit 22e297ba0f
1 changed files with 3 additions and 4 deletions

View File

@ -4585,10 +4585,9 @@ Create advice for =lispy-pair= - if =lispy--in-string-or-comment-p= is true, sel
*** imenu
#+BEGIN_SRC emacs-lisp
(use-package imenu
:ensure t
:config
(setq imenu-auto-rescan t
org-imenu-depth 5))
:hook (imenu-after-jump . (lambda () (recenter 0))) ;; also applies to `imenus'
:config (setq imenu-auto-rescan t
org-imenu-depth 5))
#+END_SRC
**** imenus