-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
133 lines (101 loc) · 3.99 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
;;'(("gnu" . "http://elpa.gnu.org/packages/")
;;("marmalade" . "http://marmalade-repo.org/packages/")
;;("melpa" . "http://melpa.milkbox.net/packages/"))
;; sort apropos by relevance
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(setq apropos-sort-by-scores t)
;; bind M-i to imenu
(global-set-key (kbd "M-i") 'imenu)
;; Purcell
;;; This file bootstraps the configuration, which is divided into
;;; a number of other files.
(let ((minver 23))
(unless (>= emacs-major-version minver)
(error "Your Emacs is too old -- this config requires v%s or higher" minver)))
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
(require 'init-benchmarking) ;; Measure startup time
(defconst *spell-check-support-enabled* nil) ;; Enable with t if you prefer
;;----------------------------------------------------------------------------
;; Bootstrap config
;;----------------------------------------------------------------------------
(require 'init-utils)
(require 'init-site-lisp) ;; Must come before elpa, as it may provide package.el
(require 'init-elpa) ;; Machinery for installing required packages
;;(require 'init-exec-path) ;; Set up $PATH
;;----------------------------------------------------------------------------
;; Allow users to provide an optional "init-preload-local.el"
;;----------------------------------------------------------------------------
(require 'init-preload-local nil t)
;;----------------------------------------------------------------------------
;; Load configs for specific features and modes
;;----------------------------------------------------------------------------
(require-package 'diminish)
(require 'init-themes)
(require 'init-isearch)
(require 'init-recentf)
(require 'init-auto-complete)
(require 'init-windows)
(require 'init-editing-utils)
(require 'init-git)
(require 'init-github)
;; C/C++
(require 'init-c)
(require 'setup-helm)
(require 'setup-helm-gtags)
;; (require 'setup-ggtags)
(require 'setup-cedet)
(require 'setup-editing)
(require 'capnp-mode)
(require 'init-org)
(require 'init-markdown)
(require 'init-ox-pandoc)
(require 'init-ox-gfm)
(require 'init-pandoc)
(require 'init-csv)
(require 'init-javascript)
(require 'init-php)
(require 'init-nxml)
(require 'init-html)
(require 'init-css)
(require 'init-python-mode)
(require 'init-sql)
(require 'init-octave)
(require 'init-solidity)
(require 'init-latex)
(require 'init-mu4e)
(when *spell-check-support-enabled*
(require 'init-spelling))
(require 'init-flycheck)
(require 'init-dvorak)
;;(require 'init-marmalade)
;;----------------------------------------------------------------------------
;; Variables configured via the interactive 'customize' interface
;;----------------------------------------------------------------------------
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(when (file-exists-p custom-file)
(load custom-file))
;;----------------------------------------------------------------------------
;; Allow access from emacsclient
;;----------------------------------------------------------------------------
(require 'server)
(unless (server-running-p)
(server-start))
;;----------------------------------------------------------------------------
;; Allow users to provide an optional "init-local" containing personal settings
;;----------------------------------------------------------------------------
(when (file-exists-p (expand-file-name "init-local.el" user-emacs-directory))
(error "Please move init-local.el to ~/.emacs.d/lisp"))
(require 'init-local nil t)
(add-hook 'after-init-hook
(lambda ()
(message "init completed in %.2fms"
(sanityinc/time-subtract-millis after-init-time before-init-time))))
(provide 'init)
;; Local Variables:
;; coding: utf-8
;; no-byte-compile: t
;; End: