diff options
| author | Astounds <kirito@disroot.org> | 2026-02-28 00:39:33 -0500 |
|---|---|---|
| committer | Astounds <kirito@disroot.org> | 2026-02-28 00:39:33 -0500 |
| commit | 47333c1f4f6fd88c4f737d60bf0d796c357861a2 (patch) | |
| tree | 5cb37c3ae69f7fc252e2db078f654d94c9f4bff8 /modules/init-dashboard.el | |
| parent | 1aedc8d100b656b26f8bd83a98e947b009a1b977 (diff) | |
| download | emacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.tar.lz emacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.tar.xz emacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.zip | |
Performance improvements (2.4s → 0.97s, 60% faster):
- Enable use-package-always-defer for lazy loading
- Add native compilation support (Emacs 28+)
- Defer company, ivy, projectile with :defer
- Move settings from :config to :init where possible
- Remove redundant package-refresh-contents
Diffstat (limited to 'modules/init-dashboard.el')
| -rw-r--r-- | modules/init-dashboard.el | 42 |
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 |
