From 1f0ad33db62250f92d7e321d4b11dcaa00d0290a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 29 Jul 2021 01:34:12 +0100 Subject: (Emacs)+demand dashboard package and setup initial-buffer-choice The dashboard is the first thing I should see when entering Emacs, hence I should demand the package instead of deferring it. Doing so means that dashboard is loaded instantly and will generate the =*dashboard*= buffer, which I can set =initial-buffer-choice= to be. --- Emacs/.config/emacs/config.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 867aef1..311502d 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1217,6 +1217,7 @@ initial startup screen in default Emacs. #+begin_src emacs-lisp (use-package dashboard :straight t + :demand t :general (leader "ab" #'dashboard-refresh-buffer) @@ -1225,7 +1226,8 @@ initial startup screen in default Emacs. :keymaps 'dashboard-mode-map "q" (proc (interactive) (kill-this-buffer))) :init - (setq dashboard-banner-logo-title "Oreomacs" + (setq initial-buffer-choice "*dashboard*" + dashboard-banner-logo-title "Oreomacs" dashboard-center-content t dashboard-set-init-info t dashboard-startup-banner (no-littering-expand-etc-file-name "dashboard/logo.png") @@ -1235,7 +1237,6 @@ initial startup screen in default Emacs. (recents . 5))) :config (dashboard-setup-startup-hook) - (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) (general-def :states '(normal motion) -- cgit v1.2.3-13-gbd6f