Thursday, June 5, 2014

Setting up emacs24 and clojure starter kit

Ubuntu

sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot

Once the ppa and emacs are installed, start emacs by doing emacs-snapshot. Hit C-x C-f (Ctrl and x, then Ctrl and f) and type in the path ~/emacs.d/init.el . Add the following text to this file

(require 'package)
(add-to-list 'package-archives
             '("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)

Now do M-x eval-buffer, then M-x package-refresh-contents, then M-x package-install. When prompted, type starter-kit. Now you are off! I also installed starter-kit-lisp

Most of the above information is just parroting the information found at the following links.

Installing EVIL mode for VIM keys

M-x package-install RET evil RET 

M-x package-install RET evil-leader RET

M-x package-install RET evil-numbers RET 


Now add the following line to ~/.emacs.d/init.el

(evil-mode 1) 
Other packages

auto-complete

auto-indent-mode


Links

https://github.com/technomancy/clojure-mode/blob/master/doc/gnu-linux-setup.md

https://github.com/technomancy/emacs-starter-kit

http://www.emacswiki.org/emacs/Evil

No comments:

Post a Comment