mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix *scratch* immortality
This commit is contained in:
@ -84,7 +84,7 @@ modes are active and the buffer is read-only.")
|
||||
|
||||
;; don't kill scratch buffers
|
||||
(defun doom|dont-kill-scratch-buffer ()
|
||||
(or (not (eq (buffer-name) "*scratch*"))
|
||||
(or (not (string= (buffer-name) "*scratch*"))
|
||||
(ignore (bury-buffer))))
|
||||
(add-hook 'kill-buffer-query-functions #'doom|dont-kill-scratch-buffer)
|
||||
|
||||
|
Reference in New Issue
Block a user