Rename doom-fallback-buffer (variable) => doom-fallback-buffer-name
This commit is contained in:
parent
7b2bbb973a
commit
ca262f5e4e
3 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ See `doom-real-buffer-p' for more information.")
|
|||
`doom-real-buffer-p' for more information.")
|
||||
|
||||
;;;###autoload
|
||||
(defvar doom-fallback-buffer "*scratch*"
|
||||
(defvar doom-fallback-buffer-name "*scratch*"
|
||||
"The name of the buffer to fall back to if no other buffers exist (will create
|
||||
it if it doesn't exist).")
|
||||
|
||||
|
@ -49,8 +49,8 @@ BUF should be skipped over by functions like `next-buffer' and `other-buffer'."
|
|||
;;;###autoload
|
||||
(defun doom-fallback-buffer ()
|
||||
"Returns the fallback buffer, creating it if necessary. By default this is the
|
||||
scratch buffer."
|
||||
(get-buffer-create doom-fallback-buffer))
|
||||
scratch buffer. See `doom-fallback-buffer-name' to change this."
|
||||
(get-buffer-create doom-fallback-buffer-name))
|
||||
|
||||
;;;###autoload
|
||||
(defalias 'doom-buffer-list #'buffer-list)
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
(def-test! fallback-buffer
|
||||
(let ((fallback (doom-fallback-buffer)))
|
||||
(should (buffer-live-p fallback))
|
||||
(should (equal (buffer-name fallback) doom-fallback-buffer))))
|
||||
(should (equal (buffer-name fallback) doom-fallback-buffer-name))))
|
||||
|
||||
;; `doom--cycle-real-buffers'
|
||||
(def-test! kill-buffer-then-show-real-buffer
|
||||
|
|
|
@ -44,7 +44,7 @@ Possible values:
|
|||
;; Bootstrap
|
||||
;;
|
||||
|
||||
(setq doom-fallback-buffer +doom-dashboard-name
|
||||
(setq doom-fallback-buffer-name +doom-dashboard-name
|
||||
initial-buffer-choice #'+doom-dashboard-initial-buffer)
|
||||
|
||||
(add-hook 'window-setup-hook #'+doom-dashboard|init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue