confirm-nonexistent-file-or-buffer = nil

This commit is contained in:
Henrik Lissner 2020-04-15 00:17:16 -04:00
parent c095e7279a
commit e4110e01b9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -159,6 +159,10 @@ read-only or not file-visiting."
;; Simpler confirmation prompt when killing Emacs ;; Simpler confirmation prompt when killing Emacs
(setq confirm-kill-emacs #'doom-quit-p) (setq confirm-kill-emacs #'doom-quit-p)
;; Don't prompt for confirmation when we create a new file or buffer (assume the
;; user knows what they're doing).
(setq confirm-nonexistent-file-or-buffer nil)
(setq uniquify-buffer-name-style 'forward (setq uniquify-buffer-name-style 'forward
;; no beeping or blinking please ;; no beeping or blinking please
ring-bell-function #'ignore ring-bell-function #'ignore
@ -223,8 +227,6 @@ read-only or not file-visiting."
;; Make `next-buffer', `other-buffer', etc. ignore unreal buffers. ;; Make `next-buffer', `other-buffer', etc. ignore unreal buffers.
(push '(buffer-predicate . doom-buffer-frame-predicate) default-frame-alist) (push '(buffer-predicate . doom-buffer-frame-predicate) default-frame-alist)
(setq confirm-nonexistent-file-or-buffer t)
(defadvice! doom--switch-to-fallback-buffer-maybe-a (&rest _) (defadvice! doom--switch-to-fallback-buffer-maybe-a (&rest _)
"Switch to `doom-fallback-buffer' if on last real buffer. "Switch to `doom-fallback-buffer' if on last real buffer.