If you're new to emacs, check out this introductory tutorial!
- Close Emacs.
- Delete
~/.emacs
or~/.emacs.d
if they exist. (Windows users, your emacs files will probably live inC:\Users\your_user_name\AppData\Roaming\
. So, for example, you would deleteC:\Users\jason\AppData\Roaming\.emacs.d
.) This is where Emacs looks for configuration files, and deleting these files and directories will ensure that you start with a clean slate. - Clone this repository
git clone https://github.com/hkopp/emacs-for-clojure.git .emacs.d
Then open Emacs.
Before upgrading, ensure that your .emacs.d
directory is under
version control so that you can always revert to a known good state.
To upgrade:
-
Edit
.emacs.d/init.el
, adding these lines after line 12:(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t) (add-to-list 'package-pinned-packages '(cider . "melpa-stable") t)
-
Close Emacs.
-
Run
rm -Rf .emacs.d/elpa/cider-*
-
Open Emacs. You'll probably see some errors and your theme won't load. That's ok.
-
In Emacs, run
M-x package-refresh-contents
. -
In Emacs, run
M-x package-install cider
. -
Close and re-open Emacs.
That should install the latest version. Enjoy!
I've tried to separate everything logically and document the purpose
of every line. init.el
acts as a kind of table of
contents.
- Clojure
- Python
- JS
Fix with gpg --homedir ~/emacs.d/elpa/gnupg --receive-keys <key-id>
ref