From 7fd844662620d68685a5e294bf88bad108bc9d68 Mon Sep 17 00:00:00 2001 From: Alexey Lebedeff Date: Sun, 21 May 2017 09:27:42 +0300 Subject: [PATCH] Fix *scratch* immortality --- core/core-editor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index 3f63ef86a..42700e5af 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -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)