mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
ui/doom-dashboard: refactor
This commit is contained in:
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))
|
Reference in New Issue
Block a user