mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-03-15 11:10:29 -07:00
And deprecate :ui doom-dashboard. The new module is a breaking rename+rewrite of the old module. The old module will be removed when v3 goes live.
28 lines
806 B
EmacsLisp
28 lines
806 B
EmacsLisp
;;; ui/dashboard/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
(defun +dashboard--help-echo ()
|
|
(when-let* ((btn (button-at (point)))
|
|
(msg (button-get btn 'help-echo)))
|
|
(message "%s" msg)))
|
|
|
|
;;;###autoload
|
|
(defun +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))
|
|
(+dashboard-reload t)))
|
|
|
|
;;;###autoload
|
|
(defun +dashboard/forward-button (n)
|
|
"Like `forward-button', but don't wrap."
|
|
(interactive "p")
|
|
(forward-button n nil)
|
|
(+dashboard--help-echo))
|
|
|
|
;;;###autoload
|
|
(defun +dashboard/backward-button (n)
|
|
"Like `backward-button', but don't wrap."
|
|
(interactive "p")
|
|
(backward-button n nil)
|
|
(+dashboard--help-echo))
|