Skip to content

Instantly share code, notes, and snippets.

@WillForan
Created April 29, 2015 17:45
Show Gist options
  • Save WillForan/0095222a5863041084fc to your computer and use it in GitHub Desktop.
Save WillForan/0095222a5863041084fc to your computer and use it in GitHub Desktop.
easily "install" and run spacemacs
#!/usr/bin/env bash
# download and modify spacemacs
# s.t. we do not have to overwrite our current emacs configuration
# ideally:
# 0. export PATH="$PATH:$HOME/bin"
# 1. put this script in $HOME/bin/spacemacs
# 2. use "spacemacs" to run spacemacs
cfgd=$HOME/.spacemacs.d/
init=$cfgd/init.el
[ ! -d $cfgd ] && \
git clone --recursive http://github.com/syl20bnr/spacemacs $cfgd
grep "$cfgd" $init >/dev/null || \
sed -i "1i (setq user-emacs-directory \"$cfgd\")" $init
emacs -q -l $cfgd/init.el
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment