mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Create a jump point before kill-current-buffer
So you can easily "undo" killing it.
This commit is contained in:
@ -293,7 +293,12 @@ files, so we replace calls to `pp' with the much faster `prin1'."
|
|||||||
(defun doom-set-jump-h ()
|
(defun doom-set-jump-h ()
|
||||||
"Run `better-jumper-set-jump' but return nil, for short-circuiting hooks."
|
"Run `better-jumper-set-jump' but return nil, for short-circuiting hooks."
|
||||||
(better-jumper-set-jump)
|
(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
|
(use-package! dtrt-indent
|
||||||
|
Reference in New Issue
Block a user