-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
25 lines (16 loc) · 928 Bytes
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;; so long story short, certain versions of emacs (I'm looking at you Cemacs) tend to load 'init.el' before 'early-init.el'. This makes sure that 'early-init.el' is explicitly loaded first. Also, this keeps me one step ahead of users who choose to load this file directly:
(load (concat (file-name-directory load-file-name) "early-init"))
;; load all modules
(load-user-file "packages.el")
(load-user-file "defaults.el")
(load-user-file "keyboard.el")
;; load all lisp/* submodules
(defun load-directory (dir)
(let ((load-it (lambda (f)
(load-file (concat (file-name-as-directory dir) f)))
))
(mapc load-it (directory-files dir nil "\\.el$"))))
;;(load-directory "~/.emacs.d/lisp/")
;; now that setup is complete, we can put GC back to normal
(setq gc-cons-threshold 800000)
(message "If this is your first installation, make sure to run `M-x company-tabnine-install-binary`")