ui/doom-dashboard: refactor
This commit is contained in:
parent
e595f20cd0
commit
c493ad80f4
2 changed files with 49 additions and 40 deletions
24
modules/ui/doom-dashboard/autoload.el
Normal file
24
modules/ui/doom-dashboard/autoload.el
Normal file
|
@ -0,0 +1,24 @@
|
|||
;;; ui/doom-dashboard/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom-dashboard/next-button ()
|
||||
(interactive)
|
||||
(ignore-errors (goto-char (next-button (point)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom-dashboard/previous-button ()
|
||||
(interactive)
|
||||
(ignore-errors (goto-char (previous-button (point)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom-dashboard/first-button ()
|
||||
(interactive)
|
||||
(goto-char (point-min))
|
||||
(+doom-dashboard/next-button))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom-dashboard/last-button ()
|
||||
(interactive)
|
||||
(goto-char (point-max))
|
||||
(+doom-dashboard/previous-button)
|
||||
(beginning-of-line-text))
|
Loading…
Add table
Add a link
Reference in a new issue