General cleanup + refactor
This commit is contained in:
parent
12e786db9a
commit
8c9269c9a2
4 changed files with 9 additions and 6 deletions
|
@ -71,8 +71,7 @@
|
|||
(defun doom|dont-kill-scratch-buffer ()
|
||||
(if (not (eq (buffer-name) "*scratch*"))
|
||||
t
|
||||
(bury-buffer)
|
||||
nil))
|
||||
(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