💾 Archived View for dots.omarpolo.com › emacs › early-init.el.gmi captured on 2023-01-29 at 15:43:48. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2023-03-20)

-=-=-=-=-=-=-

early init

Starting from GNU Emacs 27 there is an additional configuration file called `early-init.el'. As the name suggest, this is called *before* the usual `init.el' or `.emacs'. There are some small tweaks we can do here to improve startup performance and to declutter the `init.el'

(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(horizontal-scroll-bar-mode -1)

It's also a great place to tweak the `load-path'!

(add-to-list 'load-path
             (expand-file-name "lisp" user-emacs-directory))

Another thing I do here is to load the theme. I've developed my own theme (minimal-light, a fork of the original), but I'm playing with modus now

(load-theme 'minimal t)

and just a reminder for myself, these are some wip settings for modus vivendi in case I want to play with it again in the future:

;; (setq modus-themes-mode-line '(accented borderless))
;; (setq modus-themes-region '(accented bg-only))
;; (setq modus-themes-completions '((matches . (underline light))
;;                                  (selection . (underline light))
;;                                  (popup . (accented))))

Also, $CDPATH works strange in eshell so disable it:

(setenv "CDPATH" nil)