/
init.el
99 lines (77 loc) · 3.65 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
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
; this bit originating from https://github.com/technomancy/emacs-starter-kit
(defvar my-packages '(starter-kit
starter-kit-bindings
starter-kit-js
starter-kit-lisp
starter-kit-eshell
starter-kit-ruby
;; themes
color-theme-solarized
cyberpunk-theme
zen-and-art-theme
;; ye olde clojure plugins
clojure-mode
clojure-test-mode
;ac-nrepl
nrepl
;nrepl-ritz
rainbow-delimiters
;; because we want to be sublime text
minimap
;; Project navigation
projectile
ack-and-a-half
;; org-mode ; I'm not this gutsy yet.
markdown-mode
hlinum
yasnippet
;; I tried holding out and learning the Emacs
;; keybindings, but eventually I broke down.
;; Ahhh, home row... I've missed you.
evil
evil-leader
;evil-surround
evil-nerd-commenter
evil-paredit
key-chord
)
"A list of packages to ensure are installed at launch.")
;; align-cljlet, mic-paren, ac-nrepl, nrepl-ritz
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
;; Bring back the menu bar.
;;(funcall menu-bar-mode t)
;; Load the provided Clojure start kit configurations
(load (concat user-emacs-directory "clojure-starter-kit.el"))
;; Load evil-mode keymaps
(load (concat user-emacs-directory "evil.el"))
;; Load multimarkdown mode. Not available in a repo as far as I can tell.
(load (concat user-emacs-directory "multimarkdown-mode.el"))
;; move temporary files
;; TODO: move them into some dir in $HOME instead
;(setq backup-directory-alist `((".*" . ,temporary-file-directory)))
;(setq auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
(load (concat user-emacs-directory "markdown.el"))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(font-lock-warning-face ((t (:inherit nil :foreground "red" :background nil))))
'(linum-highlight-face ((t (:inherit default :background "color-238" :foreground "white"))) t)
'(show-paren-match ((((class color) (background dark)) (:inherit nil :foreground "red")))))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes (quote ("5e1d1564b6a2435a2054aa345e81c89539a72c4cad8536cfe02583e0b7d5e2fa" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" default))))