forked from avdi/.emacs24.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
22 lines (18 loc) · 765 Bytes
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; Avdi Grimm's Emacs 24 Configuration
;; Directories and file names
(setq abg-emacs-init-file (or load-file-name buffer-file-name))
(setq abg-emacs-config-dir
(file-name-directory abg-emacs-init-file))
(setq user-emacs-directory abg-emacs-config-dir)
(setq abg-elisp-dir (expand-file-name "elisp" abg-emacs-config-dir))
(setq abg-elisp-external-dir
(expand-file-name "external" abg-elisp-dir))
(setq abg-init-dir
(expand-file-name "init.d" abg-emacs-config-dir))
;; Load all elisp files in ./init.d
(if (file-exists-p abg-init-dir)
(dolist (file (directory-files abg-init-dir t "\\.el$"))
(load file)))
;; Set up 'custom' system
(setq custom-file (expand-file-name "emacs-customizations.el" abg-emacs-config-dir))
(load custom-file)