Created
April 29, 2015 17:45
-
-
Save WillForan/0095222a5863041084fc to your computer and use it in GitHub Desktop.
easily "install" and run spacemacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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