tweak: default values for tab-*-tab-choice vars

This commit is contained in:
Henrik Lissner 2025-09-23 17:30:15 -04:00
parent a307383ecb
commit 5388480894
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 7 additions and 1 deletions

View file

@ -223,6 +223,13 @@ the frame through some other means.")
;;
;;; Buffers
;; Open to the fallback buffer on new tabs, but don't set
;; `initial-buffer-choice' here because that has startup performance
;; implications. Leave that to :ui doom-dashboard.
(setq tab-line-new-tab-choice #'doom-fallback-buffer
tab-bar-new-tab-choice #'doom-fallback-buffer
tab-bar-close-last-tab-choice (lambda (_) (doom/kill-all-buffers)))
(defadvice! doom--switch-to-fallback-buffer-maybe-a (&rest _)
"Switch to `doom-fallback-buffer' if on last real buffer.

View file

@ -107,7 +107,6 @@ PLIST can have the following properties:
;; Ensure the dashboard becomes Emacs' go-to buffer when there's nothing
;; else to show.
(setq doom-fallback-buffer-name +doom-dashboard-name
tab-bar-new-tab-choice #'doom-fallback-buffer
initial-buffer-choice #'doom-fallback-buffer)
(unless fancy-splash-image
(setq fancy-splash-image