From da432905e16a194a8aa035176912920a819b457b Mon Sep 17 00:00:00 2001 From: Jack Chandler Date: Tue, 23 Jun 2020 13:06:07 +0100 Subject: [PATCH] Update README.md Some extra instructions (on Mac at least) --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bd70c9a..e70db50 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,12 @@ Install plugins for `Zsh`: `cp .zshrc ~/.zshrc` ## Emacs setup -`sudo apt install emacs` -`git clone https://github.com/purcell/emacs.d.git ~/.emacs.d` +`sudo apt install emacs` + +If ~/.emacs.d already exists, you will need to delete it before cloning purcell's emacs configuration +`rm -rf ~/.emacs.d` +`git clone https://github.com/purcell/emacs.d.git ~/.emacs.d` + I've found plain emacs gets pretty slow with time. For lightning speed and flow states, you want to start an emacs daemon and then use the @@ -42,7 +46,8 @@ This might take a while the first time around (but much quicker after that): You can now run emacs with the `emacslient` command. It's a bit of a mouthful (fingerful?) to type - I prefer to set an alias here: -`echo -e 'alias e="emacsclient -a -c"' >> ~/.zshrc` +`echo -e 'alias e="emacsclient -a -c"' >> ~/.zshrc` +To use this alias you may need to exit your shell first. Now you can open your files with Emacs like so: `e somefile`