mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-04-23 21:33:06 -07:00
fix(dashboard): revert-buffer-function
This commit is contained in:
parent
77f2b5abbb
commit
d3aaf2f9ba
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue