-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.emacs
More file actions
29 lines (22 loc) · 660 Bytes
/
Copy path.emacs
File metadata and controls
29 lines (22 loc) · 660 Bytes
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
(defconst +home-dir+ "~")
(defconst +emacs-dir+ (concat +home-dir+ "/.miso-emacs"))
(defun add-load-path (p)
(add-to-list 'load-path (concat +emacs-dir+ "/" p)))
(defun load-local-file (f)
(load-file (concat +emacs-dir+ "/" f ".el")))
(defun private (name)
(let ((file (concat +emacs-dir+ "/private/" name ".el")))
(when (file-exists-p file)
(load-file file))
)
)
(defun include (f)
(load-file (concat +emacs-dir+ "/" f ".el")))
(defun enable (f)
(message (concat "Enable" f))
(load-file (concat +emacs-dir+ "/miso/" f ".el")))
(add-load-path "")
(add-load-path "config")
(private "config")
(include "init")
(private "init")