aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/config.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-07-29 01:34:12 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-07-29 01:36:26 +0100
commit1f0ad33db62250f92d7e321d4b11dcaa00d0290a (patch)
treeb708e20d5766f5f384b5167904ee923bc091d848 /Emacs/.config/emacs/config.org
parentf6559f92ff2d7bd5ffa1dce548afdf21bf9e1e24 (diff)
downloaddotfiles-1f0ad33db62250f92d7e321d4b11dcaa00d0290a.tar.gz
dotfiles-1f0ad33db62250f92d7e321d4b11dcaa00d0290a.tar.bz2
dotfiles-1f0ad33db62250f92d7e321d4b11dcaa00d0290a.zip
(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.
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r--Emacs/.config/emacs/config.org5
1 files 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)