Refactor kill-buffer-query-functions functions
This commit is contained in:
parent
2f29d62764
commit
f156f62479
2 changed files with 6 additions and 9 deletions
|
@ -69,9 +69,8 @@
|
|||
|
||||
;; don't kill scratch buffers
|
||||
(defun doom|dont-kill-scratch-buffer ()
|
||||
(if (not (eq (buffer-name) "*scratch*"))
|
||||
t
|
||||
(ignore (bury-buffer))))
|
||||
(or (not (eq (buffer-name) "*scratch*"))
|
||||
(ignore (bury-buffer))))
|
||||
(add-hook 'kill-buffer-query-functions 'doom|dont-kill-scratch-buffer)
|
||||
|
||||
;; enabled by default in Emacs 25+. No thanks.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue