Refactor dashboard autoload functions
This commit is contained in:
parent
d75df875c9
commit
ff0b45299e
2 changed files with 4 additions and 35 deletions
|
@ -7,30 +7,3 @@
|
|||
(with-selected-frame frame
|
||||
(switch-to-buffer (doom-fallback-buffer))
|
||||
(+doom-dashboard-reload)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom-dashboard/next-button ()
|
||||
"Jump to the next button after cursor."
|
||||
(interactive)
|
||||
(ignore-errors (goto-char (next-button (point)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom-dashboard/previous-button ()
|
||||
"Jump to the previous button after cursor."
|
||||
(interactive)
|
||||
(ignore-errors (goto-char (previous-button (point)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom-dashboard/first-button ()
|
||||
"Jump to the first button on the dashboard."
|
||||
(interactive)
|
||||
(goto-char (point-min))
|
||||
(+doom-dashboard/next-button))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom-dashboard/last-button ()
|
||||
"Jump to the last button on the dashboard."
|
||||
(interactive)
|
||||
(goto-char (point-max))
|
||||
(+doom-dashboard/previous-button)
|
||||
(beginning-of-line-text))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue