aboutsummaryrefslogtreecommitdiffstats
path: root/modules/init-dashboard.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/init-dashboard.el')
-rw-r--r--modules/init-dashboard.el42
1 files changed, 14 insertions, 28 deletions
diff --git a/modules/init-dashboard.el b/modules/init-dashboard.el
index 03ffa83..cf0a622 100644
--- a/modules/init-dashboard.el
+++ b/modules/init-dashboard.el
@@ -4,36 +4,22 @@
;;; Code:
(use-package dashboard
- :pin "MELPA"
:ensure t
+ :init
+ (setq dashboard-banner-logo-title "Emacs personal"
+ dashboard-startup-banner 'logo
+ dashboard-center-content t
+ dashboard-show-shortcuts t
+ dashboard-set-heading-icons t
+ dashboard-set-file-icons t
+ dashboard-set-footer nil
+ dashboard-items '((recents . 5)
+ (bookmarks . 5)
+ (projects . 5)
+ (agenda . 5)
+ (registers . 5)))
:config
- ;; Dashboard configuration
- (dashboard-setup-startup-hook)
- (setq dashboard-banner-logo-title "Emacs personal")
- (setq dashboard-startup-banner 'logo)
- (setq dashboard-center-content t)
- (setq dashboard-show-shortcuts t)
- (setq dashboard-set-heading-icons t)
- (setq dashboard-set-file-icons t)
- (setq dashboard-set-footer nil)
-
- ;; Configuration of dashboard sections
- (setq num-recents 5)
- (setq num-bookmarks 5)
- (setq num-projects 5)
- (setq num-agenda 5)
- (setq num-registers 5)
-
- ;; Note:
- ;; grave accent (`) is used to access Emacs commands known like "execute commands".
- ;; syntax ,variable is used in context of backquote (`) macro to evaluate
- ;; the variable and replace it with its value time of evaluation.
- ;; This is known as "unquote" and is useful for constructing complex forms or lists.
- (setq dashboard-items `((recents . ,num-recents)
- (bookmarks . ,num-bookmarks)
- (projects . ,num-projects)
- (agenda . ,num-agenda)
- (registers . ,num-registers))))
+ (dashboard-setup-startup-hook))
(provide 'init-dashboard)
;;; init-dashboard.el ends here