From 94406c0f36cf725947c84c6629a9b93d5bb261d6 Mon Sep 17 00:00:00 2001 From: Andrew Whatson Date: Thu, 10 Oct 2019 13:43:47 +1000 Subject: [PATCH] Set a jump point when using imenu --- core/core-editor.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index f27e1ee70..faf33c123 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -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