mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-04 15:03:42 -05:00
Don't prompt to save for non-file-visiting buffers on kill-this-buffer
This commit is contained in:
@@ -576,7 +576,8 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
|||||||
((eq buf (doom-fallback-buffer))
|
((eq buf (doom-fallback-buffer))
|
||||||
(message "Can't kill the fallback buffer."))
|
(message "Can't kill the fallback buffer."))
|
||||||
((doom-real-buffer-p buf)
|
((doom-real-buffer-p buf)
|
||||||
(if (and (buffer-modified-p buf)
|
(if (and buffer-file-name
|
||||||
|
(buffer-modified-p buf)
|
||||||
(not (y-or-n-p "Buffer %s is modified; kill anyway?")))
|
(not (y-or-n-p "Buffer %s is modified; kill anyway?")))
|
||||||
(message "Aborted")
|
(message "Aborted")
|
||||||
(set-buffer-modified-p nil)
|
(set-buffer-modified-p nil)
|
||||||
|
Reference in New Issue
Block a user