-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
33 lines (26 loc) · 1.06 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
;; Set bigger memeory allocation before garbage collection
(setq gc-cons-threshold (* 512 1024 1024))
(setq gc-cons-percentage 0.5)
(run-with-idle-timer 5 t #'garbage-collect)
(setq garbage-collection-messages t)
;; Set fresh install to 1 for a fresh install
;; 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 fresh-install t)
;; Debugging mode
(setq debug-on-error nil)
;; Move the custom variable (auto generated) to a different file
(setq custom-file "~/.emacs.d/custom.el")
;; Generate custom file
(if (not (file-exists-p "~/.emacs.d/custom.el"))
(shell-command "touch ~/.emacs.d/custom.el"))
(require 'org)
(org-babel-load-file
(expand-file-name "config.org" user-emacs-directory))
;; Must load PATH variables in OSX before initializing packages
(let ((file-name-handler-alist nil))
;; Load custom file after generation
(load custom-file))