forked from overtone/live-coding-emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
34 lines (22 loc) · 1019 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
;; This is where everything starts
;; Create a variable to store the path to this dotfile directory
;; (Usually ~/.emacs.d)
(setq dotfiles-dir (file-name-directory
(or (buffer-file-name) load-file-name)))
;; Create variables to store the path to this dotfile dir's lib etc and tmp directories
(setq dotfiles-lib-dir (concat dotfiles-dir "lib/"))
(setq dotfiles-tmp-dir (concat dotfiles-dir "tmp/"))
(setq dotfiles-etc-dir (concat dotfiles-dir "etc/"))
;; Create helper fns for loading dotfile paths and files
(defun add-dotfile-path (p)
(add-to-list 'load-path (concat dotfiles-dir p)))
(defun add-lib-path (p)
(add-to-list 'load-path (concat dotfiles-lib-dir p)))
(defun load-dotfile (f)
(load-file (concat dotfiles-dir f)))
;; Ensure the lib directory is on the load path
(add-dotfile-path "lib")
;; Pull in live-coding config (see https://github.com/overtone/live-coding-emacs)
(load-dotfile "live-config/live.el")
;; Pull in personalised config
(load-dotfile "config/core.el")