fix(dashboard): revert-buffer-function

This commit is contained in:
Henrik Lissner 2026-03-25 19:46:05 -04:00
parent 77f2b5abbb
commit d3aaf2f9ba
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -161,7 +161,7 @@ dashboard reloading is inhibited.")
:syntax-table nil
:abbrev-table nil
(buffer-disable-undo)
(setq-local revert-buffer-function #'+dashboard-reload)
(setq-local revert-buffer-function #'+dashboard-revert-buffer-fn)
(setq truncate-lines t)
(setq-local whitespace-style nil)
(setq-local show-trailing-whitespace nil)
@ -257,6 +257,10 @@ dashboard reloading is inhibited.")
;;
;;; Hooks
(defun +dashboard-revert-buffer-fn (&optional _ignore-auto _no-confirm)
"`revert-buffer-function' for `+dashboard-mode'."
(+dashboard-reload t))
(defun +dashboard-reposition-point-h ()
"Trap the point in the buttons."
(when (region-active-p)