forked from saltycrane/emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
47 lines (42 loc) · 1.16 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
;; set stuff based on operating system
(cond
((eq system-type 'windows-nt)
(setq sc-os "windows")
)
((eq system-type 'cygwin)
(setq sc-os "cygwin")
)
((eq system-type 'gnu/linux)
(setq sc-os "linux")
(setq emacs-dir "~/.emacs.d")
(setq sc-vendor-dir "~/.emacs.d/vendor")
)
)
(print sc-os)
;; set load-path
(add-to-list 'load-path emacs-dir)
(add-to-list 'load-path sc-vendor-dir)
;; load other stuff
(load "saltycrane/defuns")
(load "saltycrane/customizations")
(load "saltycrane/bindings")
(load "saltycrane/appearance")
(load "saltycrane/scrolling")
(load "saltycrane/modes")
(load "saltycrane/python")
(load "saltycrane/flymake")
;; load os-specific stuff
(setq sc-os-config (concat emacs-dir "/saltycrane/os/" sc-os ".el"))
(when (file-exists-p sc-os-config)
(load sc-os-config))
;; load host-specific stuff
(setq sc-hostname (jdz-get-hostname))
(print sc-hostname)
(setq sc-host-config (concat emacs-dir "/saltycrane/host/" sc-hostname ".el"))
(print sc-host-config)
(when (file-exists-p sc-host-config)
(load sc-host-config))
;; load private stuff
(setq sc-private-config "~/.emacs.prv")
(when (file-exists-p sc-private-config)
(load sc-private-config))