Skip to content

Instantly share code, notes, and snippets.

@kuanyui
Last active December 21, 2015 12:59
Show Gist options
  • Save kuanyui/6309453 to your computer and use it in GitHub Desktop.
Save kuanyui/6309453 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd ~
mkdir -p ~/.emacs.d
cd ~/.emacs.d
git clone https://gist.github.com/6309242.git ramen
if [ -f ~/.emacs ]
then
echo ""
echo "(add-to-list 'load-path \"~/.emacs.d/ramen\")" >> ~/.emacs
echo ""
echo "(require 'instant-ramen)" >> ~/.emacs
else
touch ~/.emacs.d/init.el
echo ""
echo "(add-to-list 'load-path \"~/.emacs.d/ramen\")" >> ~/.emacs.d/init.el
echo ""
echo "(require 'instant-ramen)" >> ~/.emacs.d/init.el
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment