2017-06-25 02:01:05 +02:00
|
|
|
;;; ui/doom-dashboard/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
|
2018-01-20 02:53:06 -05:00
|
|
|
;;;###autoload
|
|
|
|
(defun +doom-dashboard/open (frame)
|
|
|
|
"Switch to the dashboard in the current window, of the current FRAME."
|
|
|
|
(interactive (list (selected-frame)))
|
|
|
|
(with-selected-frame frame
|
|
|
|
(switch-to-buffer (doom-fallback-buffer))
|
|
|
|
(+doom-dashboard-reload)))
|
|
|
|
|
2017-06-25 02:01:05 +02:00
|
|
|
;;;###autoload
|
|
|
|
(defun +doom-dashboard/next-button ()
|
2018-01-20 02:53:06 -05:00
|
|
|
"Jump to the next button after cursor."
|
2017-06-25 02:01:05 +02:00
|
|
|
(interactive)
|
|
|
|
(ignore-errors (goto-char (next-button (point)))))
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(defun +doom-dashboard/previous-button ()
|
2018-01-20 02:53:06 -05:00
|
|
|
"Jump to the previous button after cursor."
|
2017-06-25 02:01:05 +02:00
|
|
|
(interactive)
|
|
|
|
(ignore-errors (goto-char (previous-button (point)))))
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(defun +doom-dashboard/first-button ()
|
2018-01-20 02:53:06 -05:00
|
|
|
"Jump to the first button on the dashboard."
|
2017-06-25 02:01:05 +02:00
|
|
|
(interactive)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(+doom-dashboard/next-button))
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(defun +doom-dashboard/last-button ()
|
2018-01-20 02:53:06 -05:00
|
|
|
"Jump to the last button on the dashboard."
|
2017-06-25 02:01:05 +02:00
|
|
|
(interactive)
|
|
|
|
(goto-char (point-max))
|
|
|
|
(+doom-dashboard/previous-button)
|
|
|
|
(beginning-of-line-text))
|