-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
34 lines (26 loc) · 1000 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
31
32
33
;; emacs configuration
;; inspired by Avdi Grimm's config
(push "/usr/local/bin" exec-path)
(setq-default tab-width 2)
(setq-default indent-tabs-mode nil)
(fset 'yes-or-no-p 'y-or-n-p)
(set-frame-font "Menlo-14")
(load-theme 'tango-dark)
;; Directories and file names
(setq stask-emacs-init-file (or load-file-name buffer-file-name))
(setq stask-emacs-config-dir
(file-name-directory stask-emacs-init-file))
(setq user-emacs-directory stask-emacs-config-dir)
(setq stask-elisp-dir (expand-file-name "elisp" stask-emacs-config-dir))
(setq stask-elisp-external-dir
(expand-file-name "external" stask-elisp-dir))
(setq stask-init-dir
(expand-file-name "init.d" stask-emacs-config-dir))
;; Load all elisp files in ./init.d
(if (file-exists-p stask-init-dir)
(dolist (file (directory-files stask-init-dir t "\\.el$"))
(load file)))
;; Setup 'custom' system
(setq custom-file
(expand-file-name "emacs-customizations.el" stask-emacs-config-dir))
(load custom-file)