Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check out my own copy of midje mode into .emacs.d

  • Loading branch information...
commit 8bdc94b2a4b16392165b8803655db4e4e1a920f7 1 parent 30e688c
@christopheryoung authored
Showing with 23 additions and 1 deletion.
  1. +23 −1 emacs_setup.sh
View
24 emacs_setup.sh
@@ -22,15 +22,37 @@ cd $SETUP_SCRIPT_DIR_PATH
if [ -d $EMACSD ]; then
echo "Backing up old .emacs.d"
cp -rf $EMACSD $BACKUP_DIR
-else
+else
echo "No ~/.emacs.d found to back up"
mkdir $EMACSD
fi
+cd $EMACSD
+
+if [ -f extra-loadpaths.el ]; then
+ echo "deleting old extra_loadpaths.el"
+ rm extra-loadpaths.el
+fi
+
+echo "creating new extra_loadpaths.el"
+touch extra-loadpaths.el
+
########################################
#Copy and checkout
########################################
+# midje-mode
+
+if [ -d $EMACSD/midje-mode ]; then
+ echo "midje-mode already present."
+else
+ echo "Cloning midje-mode"
+ git clone git@github.com:christopheryoung/midje-mode.git
+fi
+
+echo "(add-to-list 'load-path \"$EMACSD/midje-mode/\")" >> extra-loadpaths.el
+
+
# copy the vendor dir for any emacs packages which aren't
# available on elpa or marmalade or via el-get
Please sign in to comment.
Something went wrong with that request. Please try again.