-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
30 lines (22 loc) · 809 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
(defvar emacs-dir (file-name-directory load-file-name)
"Root directory of our Emacs code.")
(defvar local-dir (expand-file-name "local" emacs-dir)
"Directory containing user local code.")
(defvar modules-file (expand-file-name "modules.el" emacs-dir)
"File containing list of modules to load on start.")
(add-to-list 'load-path (expand-file-name "lisp" emacs-dir))
;; define and load customizations
;;
(setq custom-file (expand-file-name "custom.el" emacs-dir))
(load custom-file)
;; load the modules file
;;
(when (file-exists-p modules-file)
(load modules-file))
;; load all user local code
;;
(when (file-exists-p local-dir)
(message "Loading personal configuration files in %s..." local-dir)
(mapc 'load (directory-files local-dir 't "^[^#].*el$")))
;; start the server
(server-start)