From e4110e01b99340cb4bae32624055dc6e29506e14 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 15 Apr 2020 00:17:16 -0400 Subject: [PATCH] confirm-nonexistent-file-or-buffer = nil --- core/core-ui.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 274d1c486..0abd2eac8 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -159,6 +159,10 @@ read-only or not file-visiting." ;; Simpler confirmation prompt when killing Emacs (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 ;; no beeping or blinking please ring-bell-function #'ignore @@ -223,8 +227,6 @@ read-only or not file-visiting." ;; Make `next-buffer', `other-buffer', etc. ignore unreal buffers. (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 _) "Switch to `doom-fallback-buffer' if on last real buffer.