-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
130 lines (107 loc) · 4.32 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
;;; This file bootstraps the configuration, which is divided into
;;; a number of other files.
(let ((minver "23.3"))
(when (version<= emacs-version "23.1")
(error "Your Emacs is too old -- this config requires v%s or higher" minver)))
(when (version<= emacs-version "24")
(message "Your Emacs is old, and some functionality in this config will be disabled. Please upgrade if possible."))
(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
(defconst *is-a-mac* (eq system-type 'darwin))
;;----------------------------------------------------------------------------
;; Less GC, more memory
;;----------------------------------------------------------------------------
;; By default Emacs will initiate GC every 0.76 MB allocated
;; (gc-cons-threshold == 800000).
;; we increase this to 500MB
;; @see http://www.gnu.org/software/emacs/manual/html_node/elisp/Garbage-Collection.html
; (setq-default gc-cons-threshold (* 1024 1024 512)
; gc-cons-percentage 0.5)
;;----------------------------------------------------------------------------
;; Do not litter my fs tree.
;;----------------------------------------------------------------------------
(setq backup-directory-alist `((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
;;----------------------------------------------------------------------------
;; Bootstrap config
;;----------------------------------------------------------------------------
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(require 'init-compat)
(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
(require 'init-themes)
(require 'init-sessions)
;;----------------------------------------------------------------------------
;; Load configs for specific features and modes
;;----------------------------------------------------------------------------
(require-package 'wgrep)
(require-package 'project-local-variables)
(require-package 'diminish)
(require-package 'scratch)
(require-package 'mwe-log-commands)
(require 'init-frame-hooks)
(require 'init-osx-keys)
(require 'init-gui-frames)
(require 'init-editing-utils)
(require 'init-auto-complete)
(require 'init-helm)
(require 'init-projectile)
(require 'init-linum)
(require 'init-xterm)
(require 'init-hippie-expand)
(require 'init-golang)
(require 'init-org)
(require 'init-markdown)
(require 'init-windows)
(require 'init-recentf)
(require 'init-neotree)
(require 'init-mmm)
(require 'init-fonts)
(require 'init-vc)
(require 'init-darcs)
(require 'tabbar)
(require 'init-git)
(require 'init-compile)
(require 'init-crontab)
(require 'init-textile)
(require 'init-python-mode)
(require 'init-slime)
(require 'init-proxies)
(require 'init-dash)
(require 'init-ledger)
(require 'init-grep)
(require 'init-ibuffer)
(require 'init-flycheck)
(require 'init-uniquify)
(require 'init-backup)
(require 'init-extra) ;;; Pkgs that do not need extra init.
(require 'init-common-lisp)
;;----------------------------------------------------------------------------
;; Variables configured via the interactive 'customize' interface
;;----------------------------------------------------------------------------
(when (file-exists-p custom-file)
(load custom-file))
(require 'init-user-key)
;;----------------------------------------------------------------------------
;; Allow access from emacsclient
;;----------------------------------------------------------------------------
;; (require 'server)
;; (unless (server-running-p)
;; (server-start))
;;----------------------------------------------------------------------------
;; Locales (setting them earlier in this file doesn't work in X)
;;----------------------------------------------------------------------------
(require 'init-locales)
(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: