Created
April 19, 2012 22:24
-
-
Save genedelisa/2424617 to your computer and use it in GitHub Desktop.
A simple init for using Clojure and lein in inferior lisp mode in the Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; a simple .emacs.d/init.el to set up | |
;; inferior lisp mode for Clojure with lein | |
;; this also add Marmalade as a package repository to obtain clojure-mode and paredit | |
(setq inferior-lisp-program "lein repl") | |
;; On OSX set the command key to be the meta key | |
(setq ns-command-modifier 'meta) | |
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/") t) | |
(package-initialize) | |
;; Change this to the path where you installed lein | |
(add-to-list 'exec-path "/Users/gene/bin") | |
;; Read in PATH from .bash_profile | |
(if (not (getenv "TERM_PROGRAM")) | |
(setenv "PATH" | |
(shell-command-to-string "source $HOME/.bash_profile && printf $PATH"))) | |
(autoload 'paredit-mode "paredit" | |
"Minor mode for pseudo-structurally editing Lisp code." t) | |
(add-hook 'emacs-lisp-mode-hook (lambda () (paredit-mode +1))) | |
(add-hook 'clojure-mode-hook (lambda () (paredit-mode +1))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment