-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathinit.el
99 lines (89 loc) · 1.8 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
;; 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)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)
(setq my/package-list
'(adoc-mode
aggressive-indent
auctex
auto-complete
cider
circe
clj-refactor
clojure-mode
coffee-mode
company
csv-mode
dash
diminish
exec-path-from-shell
flycheck
fringe-helper
git
git-gutter
git-gutter-fringe
graphviz-dot-mode
haml-mode
highlight-parentheses
;; htmlize
inf-ruby
ledger-mode
flycheck
inflections
js2-mode
json-mode
json-reformat
less-css-mode
;; leuven-theme
magit
makey
markdown-mode
multiple-cursors
names
neotree
paredit
php-mode
pkg-info
popup
powerline
;; pretty-symbols
projectile
plantuml-mode
rainbow-delimiters
rainbow-mode
rspec-mode
ruby-compilation
rvm
s
scss-mode
sass-mode
shut-up
slamhound
smart-mode-line
smartparens
smex
tracking
undo-tree
nyan-mode
web-mode
writeroom-mode
yaml-mode
yasnippet
))
;; fetch the list of packages available
(unless (file-exists-p package-user-dir)
(package-refresh-contents))
;; install the missing packages
(dolist (package my/package-list)
(unless (package-installed-p package)
(message "Installing %s" package)
(package-install package)))
(require 'org)
(when (string-match "^[1234567]" (org-version))
(warn "Org-Mode is out of date. We expect org 8 or higher, but instead we have %s" (org-version)))
(org-babel-load-file "~/.emacs.d/emacs.org")
(put 'narrow-to-region 'disabled nil)
(put 'downcase-region 'disabled nil)