Compare commits

...

2 Commits

Author SHA1 Message Date
81f2886ec9 Remove dashboard 2025-05-04 14:51:28 +02:00
94abdf47df Improve startup time 2025-05-04 14:50:49 +02:00

View File

@ -184,10 +184,17 @@
number, and restore the default value after initialization. number, and restore the default value after initialization.
#+begin_src emacs-lisp :tangle early-init.el #+begin_src emacs-lisp :tangle early-init.el
(setq gc-cons-threshold most-positive-fixnum)
(add-hook 'after-init-hook (let ((file-name-handler-alist-old file-name-handler-alist))
(lambda () (add-hook 'emacs-startup-hook
(setq gc-cons-threshold (* 1024 1024 20)))) (lambda ()
(setq gc-cons-threshold (* 1024 1024 20))
(setq file-name-handler-alist file-name-handler-alist-old)))
(setq gc-cons-threshold most-positive-fixnum)
(setq file-name-handler-alist nil))
(setq inhibit-default-init t)
#+end_src #+end_src
* Packages * Packages
@ -526,27 +533,6 @@
#+end_src #+end_src
** Dashboard
Dashboard provides a nice welcome.
#+begin_src emacs-lisp
;; A startup screen extracted from Spacemacs
(use-package dashboard
:config
(setq dashboard-projects-backend 'project-el
dashboard-banner-logo-title nil
dashboard-center-content t
dashboard-set-footer nil
dashboard-page-separator "\n\n\n"
dashboard-items '((projects . 15)
(recents . 15)
(bookmarks . 5)))
(dashboard-setup-startup-hook))
#+end_src
** Center content mode ** Center content mode
[[https://git.larstvei.no/larstvei/center-content-mode][center-content-mode]] is a small, homegrown, minor mode for centering the [[https://git.larstvei.no/larstvei/center-content-mode][center-content-mode]] is a small, homegrown, minor mode for centering the