By default, empty buffer-file-name = unreal buffer

This commit is contained in:
Henrik Lissner 2017-06-12 14:28:59 +02:00
parent b3dafe96d3
commit d9d049549f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 8 additions and 3 deletions

View file

@ -142,7 +142,8 @@ popup window/buffer and b) isn't a special buffer."
(or (run-hook-with-args-until-success 'doom-real-buffer-functions buf)
(not (or (doom-popup-p buf)
(minibufferp buf)
(string-match-p "^\\s-*\\*" (buffer-name buf)))))))
(string-match-p "^\\s-*\\*" (buffer-name buf))
(not (buffer-file-name buf)))))))
;;;###autoload
(defun doom/next-buffer ()