Rename doom-fallback-buffer (variable) => doom-fallback-buffer-name

This commit is contained in:
Henrik Lissner 2018-02-01 20:06:00 -05:00
parent 7b2bbb973a
commit ca262f5e4e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 5 additions and 5 deletions

View file

@ -30,7 +30,7 @@ See `doom-real-buffer-p' for more information.")
`doom-real-buffer-p' for more information.") `doom-real-buffer-p' for more information.")
;;;###autoload ;;;###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 "The name of the buffer to fall back to if no other buffers exist (will create
it if it doesn't exist).") it if it doesn't exist).")
@ -49,8 +49,8 @@ BUF should be skipped over by functions like `next-buffer' and `other-buffer'."
;;;###autoload ;;;###autoload
(defun doom-fallback-buffer () (defun doom-fallback-buffer ()
"Returns the fallback buffer, creating it if necessary. By default this is the "Returns the fallback buffer, creating it if necessary. By default this is the
scratch buffer." scratch buffer. See `doom-fallback-buffer-name' to change this."
(get-buffer-create doom-fallback-buffer)) (get-buffer-create doom-fallback-buffer-name))
;;;###autoload ;;;###autoload
(defalias 'doom-buffer-list #'buffer-list) (defalias 'doom-buffer-list #'buffer-list)

View file

@ -107,7 +107,7 @@
(def-test! fallback-buffer (def-test! fallback-buffer
(let ((fallback (doom-fallback-buffer))) (let ((fallback (doom-fallback-buffer)))
(should (buffer-live-p fallback)) (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' ;; `doom--cycle-real-buffers'
(def-test! kill-buffer-then-show-real-buffer (def-test! kill-buffer-then-show-real-buffer

View file

@ -44,7 +44,7 @@ Possible values:
;; Bootstrap ;; Bootstrap
;; ;;
(setq doom-fallback-buffer +doom-dashboard-name (setq doom-fallback-buffer-name +doom-dashboard-name
initial-buffer-choice #'+doom-dashboard-initial-buffer) initial-buffer-choice #'+doom-dashboard-initial-buffer)
(add-hook 'window-setup-hook #'+doom-dashboard|init) (add-hook 'window-setup-hook #'+doom-dashboard|init)