Fix *scratch* immortality

This commit is contained in:
Alexey Lebedeff 2017-05-21 09:27:42 +03:00 committed by GitHub
parent 3a0a2c5481
commit 7fd8446626

View file

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