-
Notifications
You must be signed in to change notification settings - Fork 267
/
init.el
45 lines (39 loc) · 1.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
;; -*- lexical-binding: t; -*-
;; Emacs comes with package.el for installing packages.
;; Try M-x list-packages to see what's available.
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("melpa-stable" . "https://stable.melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
;; setup.el provides a macro for configuration patterns
;; it makes package installation and config nice and tidy!
;; https://www.emacswiki.org/emacs/SetupEl
(if (package-installed-p 'setup)
nil
(if (memq 'setup package-archive-contents)
nil
(package-refresh-contents))
(package-install 'setup))
(require 'setup)
;; All other features are loaded one by one from
;; the customizations directory. Read those files
;; to find out what they do.
(add-to-list 'load-path "~/.emacs.d/customizations")
(defvar addons
'("ui.el"
"navigation.el"
"projects.el"
"git.el"
"filetree.el"
"editing.el"
"elisp-editing.el"
"setup-clojure.el"
"setup-js.el"
"shell-integration.el"))
(dolist (x addons)
(load x))
;; Make gc pauses faster by decreasing the threshold.
(setq gc-cons-threshold (* 2 1000 1000))
(setq custom-file (concat user-emacs-directory "custom.el"))
(load custom-file 'noerror)