dotfiles/emacs/.emacs.d/config/init-dashboard.el

30 lines
892 B
EmacsLisp
Raw Normal View History

2021-02-21 02:59:11 +00:00
;; -*- lexical-binding: t; -*-
;; A neat dashboard when you open Emacs
(use-package dashboard
:demand t
:config
2021-02-20 16:52:15 +00:00
(when (file-exists-p (expand-file-name "~/Sync/pictures/hallows.png"))
(setq dashboard-startup-banner (expand-file-name "~/Sync/pictures/hallows.png")))
(dashboard-setup-startup-hook)
:general
('normal dashboard-mode-map
"TAB" #'widget-forward
"<tab>" #'widget-forward
"<backtab>" #'widget-backward
"RET" #'dashboard-return
"?" #'describe-mode
"gr" #'dashboard-refresh-buffer
"q" #'quit-window
"r" #'dashboard-jump-to-recent-files
2021-02-20 16:52:15 +00:00
"p" #'dashboard-jump-to-projects
"{" #'dashboard-previous-section
2021-02-20 16:52:15 +00:00
"}" #'dashboard-next-section)
:custom
(dashboard-items '((recents . 5) (projects . 5)))
(dashboard-set-heading-icons t)
(dashboard-set-file-icons t)
(dashboard-set-navigator t))
(provide 'init-dashboard)