ui/doom-dashboard: refactor

This commit is contained in:
Henrik Lissner 2017-06-25 02:01:05 +02:00
parent e595f20cd0
commit c493ad80f4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 49 additions and 40 deletions

View 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))