At least Emacs 27 is required for this init.el. I'm currently using it on macOS 14 with emacs 29.3 from emacsformacosx.com.
- Back up
~/.emacs
and~/.emacs.d
if there is anything you wish to keep, then remove both. git clone git://github.com/egamble/.emacs.d.git
from your home directory.- To open a file in the currently running Emacs.app from a terminal shell, put a link to /Applications/Emacs.app/Contents/MacOS/bin/emacsclient somewhere on your PATH. E.g.
ln -s /Applications/Emacs.app/Contents/MacOS/bin/emacsclient /usr/local/bin/emacsclient
. You may need to update your PATH in ~/.zshrc with e.g.PATH=/usr/local/bin:$PATH
. - Verify with
which emacsclient
that emacsclient comes from /usr/local/bin rather than /usr/bin. - A nice shortcut for invoking emacsclient is
alias e='emacsclient -n'
, which you could put in your ~/.zshrc. - To use cider, first install leiningen. Then add cider-nrepl to the
:repl
profile in~/.lein/profiles.clj
. You may also need to addtools.nrepl
as a dependency, e.g.,{:repl {:plugins [[cider/cider-nrepl "0.11.0-SNAPSHOT"]] :dependencies [[org.clojure/tools.nrepl "0.2.12"]]}}
. - Whenever you update your ~/.emacs.d from this repo with
git pull
, remove~/.emacs.d/elpa
prior to restarting emacs. This ensures that the latest versions of the emacs packages are installed.