forked from myTerminal/super-emacs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.el
25 lines (22 loc) · 837 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
(require 'cl-lib)
;; Initialize root
(defvar se/config-root
(file-name-directory load-file-name))
(defun se/start ()
"Loads core and then conditionally loads configs."
(cl-flet* ((start-basic ()
(se/load-file "modes/basic/misc")
(se/load-file "modes/basic/packages")
(se/load-file "modes/basic/key-bindings"))
(start-standard ()
(se/load-file "modes/standard/misc")
(se/load-file "modes/standard/packages")
(se/load-file "modes/standard/key-bindings")))
(load (expand-file-name "core"
se/config-root))
(start-basic)
(if (display-graphic-p)
(start-standard))
(se/print-startup-message)))
;; Start
(se/start)