Don't kill scratch or dashboard buffer, but cycle through them on kill attempt
This commit is contained in:
parent
031457bcaf
commit
047ea64e99
3 changed files with 17 additions and 5 deletions
|
@ -81,6 +81,14 @@
|
|||
(global-auto-revert-mode 1)
|
||||
(setq auto-revert-verbose nil)
|
||||
|
||||
;; don't kill scratch buffers
|
||||
(defun doom|dont-kill-scratch-buffer ()
|
||||
(if (not (eq (buffer-name) "*scratch*"))
|
||||
t
|
||||
(bury-buffer)
|
||||
nil))
|
||||
(add-hook 'kill-buffer-query-functions 'doom|dont-kill-scratch-buffer)
|
||||
|
||||
|
||||
;;
|
||||
;; Core Plugins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue