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 ()
|
(defun +doom-dashboard|reposition-point ()
|
||||||
"Trap the point in the buttons."
|
"Trap the point in the buttons."
|
||||||
(unless (button-at (point))
|
(or (ignore-errors
|
||||||
(or (+doom-dashboard/previous-button)
|
(if (button-at (point))
|
||||||
(+doom-dashboard/first-button))))
|
(forward-button 0)
|
||||||
|
(backward-button 1)))
|
||||||
|
(progn (goto-char (point-min))
|
||||||
|
(forward-button 1))))
|
||||||
|
|
||||||
(defun +doom-dashboard|init ()
|
(defun +doom-dashboard|init ()
|
||||||
"Initializes Doom's dashboard."
|
"Initializes Doom's dashboard."
|
||||||
|
Reference in New Issue
Block a user