Create a jump point before kill-current-buffer

So you can easily "undo" killing it.
This commit is contained in:
Henrik Lissner 2019-10-07 23:56:47 -04:00
parent c6d5fa601e
commit 0426b9d514
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -293,7 +293,12 @@ files, so we replace calls to `pp' with the much faster `prin1'."
(defun doom-set-jump-h ()
"Run `better-jumper-set-jump' but return nil, for short-circuiting hooks."
(better-jumper-set-jump)
nil))
nil)
;; 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))
(use-package! dtrt-indent