Customise how dashboard is started

This commit is contained in:
Evie Litherland-Smith 2023-10-27 10:45:05 +01:00
parent 7edc3efa2b
commit f1b8a95546

View file

@ -40,14 +40,13 @@
(scroll-bar-mode -1)
(add-to-list 'default-frame-alist '(font . "FiraCode Nerd Font-12"))
(global-prettify-symbols-mode +1)
(global-word-wrap-whitespace-mode +1)
(set-frame-parameter nil 'alpha-background 80)
(add-to-list 'default-frame-alist '(alpha-background . 80))
(when (require 'doom-themes nil :noerror) (load-theme 'doom-tokyo-night t))
;; Dashboard
(when (require 'dashboard nil :noerror)
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*")))
(dashboard-setup-startup-hook))
(when (require 'dashboard nil :noerror) (setq initial-buffer-choice 'dashboard-open))
;; Extra minor-modes
(when (require 'which-key nil :noerror) (which-key-mode +1))