Blame


1 678b3cb3 2022-03-16 op # early init
2 678b3cb3 2022-03-16 op
3 678b3cb3 2022-03-16 op Starting from GNU Emacs 27 there is an additional configuration file
4 678b3cb3 2022-03-16 op called `early-init.el'. As the name suggest, this is called *before*
5 678b3cb3 2022-03-16 op the usual `init.el' or `.emacs'. There are some small tweaks we can
6 678b3cb3 2022-03-16 op do here to improve startup performance and to declutter the `init.el'
7 678b3cb3 2022-03-16 op
8 678b3cb3 2022-03-16 op (menu-bar-mode -1)
9 678b3cb3 2022-03-16 op (tool-bar-mode -1)
10 678b3cb3 2022-03-16 op (scroll-bar-mode -1)
11 678b3cb3 2022-03-16 op (horizontal-scroll-bar-mode -1)
12 678b3cb3 2022-03-16 op
13 678b3cb3 2022-03-16 op It's also a great place to tweak the `load-path'!
14 678b3cb3 2022-03-16 op
15 678b3cb3 2022-03-16 op (add-to-list 'load-path
16 678b3cb3 2022-03-16 op (expand-file-name "lisp" user-emacs-directory))
17 678b3cb3 2022-03-16 op
18 678b3cb3 2022-03-16 op Another thing I do here is to load the theme. I've developed my own
19 678b3cb3 2022-03-16 op theme (minimal-light, a fork of the original), but I'm playing with
20 678b3cb3 2022-03-16 op modus now
21 678b3cb3 2022-03-16 op
22 e40a9a94 2022-05-09 op (load-theme 'minimal t)
23 e40a9a94 2022-05-09 op ;; (load-theme 'modus-operandi)
24 678b3cb3 2022-03-16 op
25 678b3cb3 2022-03-16 op Also, $CDPATH works strange in eshell so disable it:
26 678b3cb3 2022-03-16 op
27 678b3cb3 2022-03-16 op (setenv "CDPATH" nil)