forked from superbobry/emacs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.el
30 lines (23 loc) · 926 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
26
27
28
29
30
;;; init.el --- initialization
(defvar local-dir (file-name-directory user-init-file)
"The root dir of the Emacs configuration.")
(defun local-file-name (file-name)
(let* ((file-path (expand-file-name file-name local-dir))
(parent-dir (file-name-directory file-path)))
(unless (or (not parent-dir)
(file-exists-p parent-dir))
(make-directory parent-dir))
file-path))
(setq custom-file (local-file-name "custom.el"))
(load custom-file t)
(load (local-file-name "core/core-packages"))
(load (local-file-name "core/core-env"))
(load (local-file-name "rc/rc-ui"))
(load (local-file-name "rc/rc-editor"))
(load (local-file-name "rc/rc-defuns"))
(load (local-file-name "rc/rc-languages"))
(load (local-file-name "rc/rc-markup"))
(load (local-file-name "rc/rc-flyspell"))
(load (local-file-name "rc/rc-global-bindings"))
(load (local-file-name "private.el") t)
;;; init.el ends here