-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.el
More file actions
46 lines (38 loc) · 1.31 KB
/
init.el
File metadata and controls
46 lines (38 loc) · 1.31 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
;;; init.el --- Where all the magic begins
;; Turn off extra Aquamacs stuff early in startup to avoid momentary display
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tabbar-mode) (tabbar-mode -1))
;; Set up helper functions
(setq config-root-dir (file-name-directory
(or (buffer-file-name) load-file-name)))
;; Add plugins
(add-to-list 'load-path (concat config-root-dir "/plugins"))
;; Add custom configurations
(defconst custom-config-dir (concat config-root-dir "/custom/")
"Path to directory containing user customized configurations.")
(defun load-config-files (filelist)
(dolist (file filelist)
(load (expand-file-name
(concat custom-config-dir file)))
(message "Loaded custom config file: %s" file)
))
(load-config-files '(
"custom"
"keybindings"
"yasnippet"
"ecb"
"multi-term"
"version-control"
"projects"
"markdown-env"
"lisp-env"
"org-mode-env" ; after projects.el (needs anything.el)
"python-env"
"appearance" ; appearance least important, so load last
))
;; since ropemacs etc is slow, wait with this until we load a python file
;(add-to-list 'load-path custom-config-dir)
;(autoload 'python-mode "python-env" "Python Environment" t)
(provide 'init)