forked from ocodo/.emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
74 lines (64 loc) · 2.3 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
;; init --- ocodo's emacs config
;;; Commentary:
;; _ _ _
;; ___ ___ ___ __| | ___ ___ _ __ ___ __ _ ___ ___ __| | ___ | |_
;; / _ \ / __/ _ \ / _` |/ _ \ / _ \ '_ ` _ \ / _` |/ __/ __| / _` |/ _ \| __|
;; | (_) | (_| (_) | (_| | (_) | | __/ | | | | | (_| | (__\__ \ | (_| | (_) | |_
;; \___/ \___\___/ \__,_|\___/ \___|_| |_| |_|\__,_|\___|___/ \__,_|\___/ \__|
;;
;;; Code:
(let ((default-directory user-emacs-directory))
(add-to-list 'load-path (expand-file-name "init-helpers")))
(load-library "init-helpers")
(init-set-custom)
(manage-toolbar-and-menubar)
(manage-history)
(set-window-system-font)
(setq debug-on-error nil)
(setq frame-title-format '("%b %I %+%@%t%Z %m %n %e"))
(let ((default-directory user-emacs-directory))
(normal-top-level-add-subdirs-to-load-path))
(require 'elpa-init)
;; Explicit Requires ...
(dolist (lib '(handy-functions
custom-keys
ag
armitp-mode-line
diff-region
highlight-indentation
kurecolor
iedit
js2-refactor
kill-buffer-without-confirm
mac-frame-adjust
multiple-cursors
opl-coffee
opl-rails
jasmine-locator
resize-window
scroll-bell-fix
squeeze-view
switch-window
xterm-256-to-hex
super-num-zero-map))
(load-library (symbol-name lib)))
(dolist (init-file
(directory-files
(concat user-emacs-directory "modes-init")))
(load-mode-init-file init-file))
;; When GUI (hopefully svg is available!)
;; Load an SVG Modeline
(when (image-type-available-p 'svg)
(smt/enable)
(require 'ocodo-svg-modelines)
(ocodo-svg-modelines-init)
(smt/set-theme 'ocodo-mesh-retro-aqua-smt))
;; This is set by some packages erroneously. (e.g. AsciiDoc)
;; send fix patches to package authors who do this.
(setq debug-on-error nil)
(load-local-init)
;; Optional init modes (for example those which contain security
;; keys/tokens) - These files are added to .gitignore and only loaded
;; when present.
;; (mapcar 'load-optional-mode-init '( ... list of optionals ... ))
;;; init.el ends here