Stop 'Nowhere left to go!' spam; lighten up Emacs!

This commit is contained in:
Henrik Lissner 2017-12-28 22:08:19 -05:00
parent 60e8f6297e
commit 5bd361cbc4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -250,10 +250,10 @@ regex PATTERN. Returns the number of killed buffers."
(doom-kill-buffer buf t)))) (doom-kill-buffer buf t))))
;;;###autoload ;;;###autoload
(defun doom/kill-this-buffer () (defun doom/kill-this-buffer (&optional interactive-p)
"Use `doom-kill-buffer' on the current buffer." "Use `doom-kill-buffer' on the current buffer."
(interactive) (interactive (list 'interactive))
(when (and (not (doom-kill-buffer)) (called-interactively-p 'interactive)) (when (and (not (doom-kill-buffer)) interactive-p)
(message "Nowhere left to go!"))) (message "Nowhere left to go!")))
;;;###autoload ;;;###autoload