2021-02-21 02:59:11 +00:00
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2021-02-20 11:40:03 +00:00
|
|
|
;; 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")))
|
2021-02-20 11:40:03 +00:00
|
|
|
(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
|
2021-02-20 11:40:03 +00:00
|
|
|
"{" #'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))
|
2021-02-20 11:40:03 +00:00
|
|
|
|
|
|
|
(provide 'init-dashboard)
|