-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
42 lines (27 loc) · 1.27 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
;; @jr0cket - communiy developer > http://blog.jr0cket.co.uk/
;; Lightweight clojure setup for Emacs
;; requires emacs24 and leiningen
;; Add Marmalade package archive for Emacs starter kit and other Emacs packages
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") )
(package-initialize)
;; Add Clojure and other supporting packages to the Emacs environment
;; Packages are installed if they are not already present
;; The list includes packages for the starter kit, Clojure and markdown files (used by github)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit starter-kit-lisp starter-kit-eshell starter-kit-bindings
clojure-mode clojure-test-mode
rainbow-delimiters
ac-slime
markdown-mode ))
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
;; Useful global settings as Emacs is used predominantely for Clojure development
;; Launch the Clojure repl via Leiningen - M-x clojure-jack-in
;; Global shortcut definition to fire up clojure repl and connect to it
(global-set-key (kbd "C-c C-j") 'clojure-jack-in)
;; Colour mach parens and other structure characters to make code easy to follow
(global-rainbow-delimiters-mode)