summaryrefslogtreecommitdiff
path: root/config/dashboard.el
diff options
context:
space:
mode:
authorbh <qn+git@excalibur.computer>2025-12-13 22:59:49 +0800
committerbh <qn+git@excalibur.computer>2025-12-13 22:59:49 +0800
commite0812d171c2cb6f71822357046068a261bd121e4 (patch)
tree2eb0f30a9cc4f38b0529f7cde9f6e23250315383 /config/dashboard.el
parentc176b559fac5c860d50a140dfcfe589ea52173ae (diff)
Added Dashboard
Diffstat (limited to 'config/dashboard.el')
-rw-r--r--config/dashboard.el41
1 files changed, 41 insertions, 0 deletions
diff --git a/config/dashboard.el b/config/dashboard.el
new file mode 100644
index 0000000..f5496ce
--- /dev/null
+++ b/config/dashboard.el
@@ -0,0 +1,41 @@
+;; Dashboard - Startup screen
+(use-package dashboard
+ :config
+ ;; Use text banner from file
+ (setq dashboard-startup-banner (expand-file-name "config/banner.txt" user-emacs-directory))
+ (setq dashboard-banner-logo-title "In the Beginning was the Word, and the Word was with EMACS,\nand the Word was EMACS...")
+
+ ;; Customize the text banner face to make icon HUGE
+ (set-face-attribute 'dashboard-text-banner nil
+ :height 15.0
+ :foreground "#8057b6")
+
+ ;; Customize the title face
+ (set-face-attribute 'dashboard-banner-logo-title nil
+ :height 1.2
+ :foreground "#8affff"
+ :weight 'bold)
+
+ ;; Center content
+ (setq dashboard-center-content t)
+ (setq dashboard-vertically-center-content t)
+
+ ;; Disable shortcut indicators
+ (setq dashboard-show-shortcuts nil)
+
+ ;; Customize dashboard items
+ (setq dashboard-items '((recents . 5)
+ (bookmarks . 5)
+ (projects . 5)
+ (agenda . 5)
+ (registers . 5)))
+ (setq dashboard-item-shortcuts '((recents . "r")
+ (bookmarks . "m")
+ (projects . "p")
+ (agenda . "a")
+ (registers . "e")))
+
+ ;; Set up the startup hook
+ (dashboard-setup-startup-hook))
+
+(provide 'dashboard)