mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Trap cursor in buttons better in dashboard #465
This commit is contained in:
@ -97,9 +97,12 @@ Possible values:
|
||||
|
||||
(defun +doom-dashboard|reposition-point ()
|
||||
"Trap the point in the buttons."
|
||||
(unless (button-at (point))
|
||||
(or (+doom-dashboard/previous-button)
|
||||
(+doom-dashboard/first-button))))
|
||||
(or (ignore-errors
|
||||
(if (button-at (point))
|
||||
(forward-button 0)
|
||||
(backward-button 1)))
|
||||
(progn (goto-char (point-min))
|
||||
(forward-button 1))))
|
||||
|
||||
(defun +doom-dashboard|init ()
|
||||
"Initializes Doom's dashboard."
|
||||
|
Reference in New Issue
Block a user