From 72f073feaa12617ce8ed873a9953847bccb20d8f Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 4 Apr 2012 18:32:47 +0300 Subject: [PATCH] mention the transition to personal as a submodule --- README.md | 7 ++++++- utils/installer.sh | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1e22eac..20377ef 100644 --- a/README.md +++ b/README.md @@ -221,6 +221,9 @@ If you're using `wget` type: ```bash $ git clone git://github.com/bbatsov/emacs-prelude.git path/to/local/repo $ ln -s path/to/local/repo ~/.emacs.d +$ cd ~/emacs.d +$ git submodule init +$ git submodule update ``` You'd do well to replace `~/.emacs.d` with the value of @@ -304,7 +307,9 @@ Or you can use another theme altogether by adding something like: If you'd like to change some of the setting in Prelude (or simply add more) the proper way to do so would be to create Emacs Lisp files under the **personal** directory in `prelude-dir`. They will be loaded -automatically be Prelude on startup. +automatically be Prelude on startup. The directory is backed by a git +submodule, so you can easily track your own personalizations via +git. Avoid modifying the Prelude config itself (unless you're not intimidated to maintain a personal fork on GitHub) - this will make it diff --git a/utils/installer.sh b/utils/installer.sh index 522ec97..a3e6371 100755 --- a/utils/installer.sh +++ b/utils/installer.sh @@ -20,9 +20,11 @@ then mv ~/.emacs ~/.emacs.pre-prelude fi - echo -n "Cloning Emacs Prelude from GitHub... " /usr/bin/env git clone $PRELUDE_URL $PRELUDE_INSTALL_DIR > /dev/null +cd $PRELUDE_INSTALL_DIR +/usr/bin/env git submodule init +/usr/bin/env git submodule update echo "done." echo ' _____ ____ _ _ '