Skip to content

Instantly share code, notes, and snippets.

@matstani
Last active Dec 16, 2015
Embed
What would you like to do?
Clojure開発用.emacs
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(defvar clojure-packages '(clojure-mode
paredit
cider
rainbow-delimiters))
(dolist (p clojure-packages)
(when (not (package-installed-p p))
(package-refresh-contents)
(package-install p)))
(defvar clojure-minor-modes '(paredit-mode
rainbow-delimiters-mode))
(dolist (mode clojure-minor-modes)
(add-hook 'clojure-mode-hook mode)
(add-hook 'cider-repl-mode-hook mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment