Merge pull request #1872 from flatwhatson/imenu-jump

Set a jump point when using imenu
This commit is contained in:
Henrik Lissner 2019-10-10 11:27:48 -04:00 committed by GitHub
commit a78cd13c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,7 +298,10 @@ files, so we replace calls to `pp' with the much faster `prin1'."
;; Creates a jump point before killing a buffer. This allows you to undo
;; killing a buffer easily (only works with file buffers though; it's not
;; possible to resurrect special buffers).
(advice-add #'kill-current-buffer :around #'doom-set-jump-a))
(advice-add #'kill-current-buffer :around #'doom-set-jump-a)
;; Create a jump point before jumping with imenu.
(advice-add #'imenu :around #'doom-set-jump-a))
(use-package! dtrt-indent