Don't kill scratch or dashboard buffer, but cycle through them on kill attempt

This commit is contained in:
Henrik Lissner 2017-02-20 19:43:57 -05:00
parent 031457bcaf
commit 047ea64e99
3 changed files with 17 additions and 5 deletions

View file

@ -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