💾 Archived View for dots.omarpolo.com › emacs › early-init.el.gmi captured on 2022-06-11 at 20:52:00. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-06-03)

➡️ Next capture (2023-01-29)

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

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)
;; (load-theme 'modus-operandi)

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

(setenv "CDPATH" nil)