summaryrefslogtreecommitdiff
path: root/config/dashboard.el
blob: 820a476f6d2da0c5b2a48983a5f2541249c572bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
;; Dashboard - Startup screen

(use-package dashboard
	:config
	;; Use text banner from file
	(setq dashboard-startup-banner (expand-file-name "config/text/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)

	;; Customize section heading colors (Recent Files, Projects, etc.)
	(set-face-attribute 'dashboard-heading nil
						:foreground "#ffc600"
						:weight 'bold)

	;; Enable Nerd Font icons
	(setq dashboard-icon-type 'nerd-icons)
	(setq dashboard-set-heading-icons t)
	(setq dashboard-set-file-icons t)

	;; Customize heading icons (optional - comment out to use defaults)
	 (setq dashboard-heading-icons '((recents   . "nf-oct-history")
									(bookmarks . "nf-oct-bookmark")
									(projects  . "nf-oct-rocket")
									(agenda    . "nf-oct-calendar")
									(registers . "nf-oct-database")))

	;; 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)