-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
executable file
·119 lines (98 loc) · 2.73 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
;; No splash screen please ... jeez
(setq inhibit-startupmessage t)
;; Set path to dependencies
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
(add-to-list 'load-path "~/.emacs.d/site-lisp/")
(setq site-lisp-dir
(expand-file-name "site-lisp" user-emacs-directory))
;; Is a mac?
(defconst *is-a-mac* (eq system-type 'darwin))
;; Bootstrap config
(setq rr-initialization-errors nil)
(require 'init-bootstrap)
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(require 'init-utils)
(require 'init-site-lisp) ;; Must come before elpa, as it may provide package.el
;; Calls (package-initialize)
(require 'init-elpa) ;; Machinery for installing required packages
(require 'init-exec-path) ;; Set up $PATH
(defvar init-files
'(
;; Appearance
init-locales
init-appearance
;;----------------------------------------------------------------------------
;; Load configs for specific features and modes
;;----------------------------------------------------------------------------
init-smartparens
init-yasnippet
init-hippie-expand
init-bookmarks
init-helm
init-eshell
init-dired
init-git
init-ido
init-ibuffer
init-search
init-guidekey
init-flycheck
init-packages
init-defuns
init-coding
init-bindings
init-misc
init-compile
init-folding
init-ivy
;; specific programming modes modes
init-csv
init-ess
init-haskell
init-latex
init-reftex
init-lisp
init-markdown
init-python
init-stan
init-org
init-org-templates
init-scala
init-sql
init-css
init-javascript
init-html
init-hadoop
init-devops
init-crontab
init-docker
init-http
;; company mode
init-company
;; diminish mode line
init-diminish
;; Bindings
init-bindings
init-hydra
;; Mode mappings
init-mode-mapping
))
(rr-safe-load-init-files)
;; Mac-specific stuff
(when *is-a-mac*
(require 'init-osx))
;;----------------------------------------------------------------------------;; Allow access from emacsclient
;;----------------------------------------------------------------------------
(add-hook 'after-init-hook
(lambda ()
(require 'server)
(unless (server-running-p)
(server-start))))
;;----------------------------------------------------------------------------;; Variables configured via the interactive 'customize' interface
;;----------------------------------------------------------------------------
(when (file-exists-p custom-file)
(load custom-file))
(require 'init-sessions)
;;; init.el ends here