aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-09-23 00:41:58 +0200
committerGravatar Tom Willemse2013-09-23 00:47:16 +0200
commit34b2b9e7ff7cb8def8e68c64391e597e5f68995b (patch)
tree5a576f583bcbdda49785fe3ac9d9443511755147
parenta29dc351437a72f1a2c06c76a7799bb428481f4f (diff)
downloadkaarvok-34b2b9e7ff7cb8def8e68c64391e597e5f68995b.tar.gz
kaarvok-34b2b9e7ff7cb8def8e68c64391e597e5f68995b.zip
Run kaarvok from anywhere
When running `kaarvok' always add the current directory to the `load-path'. This way, as long as `kaarvok.el' is in the same directory as `kaarvok', `kaarvok.el' can always be found.
-rwxr-xr-xkaarvok2
1 files changed, 1 insertions, 1 deletions
diff --git a/kaarvok b/kaarvok
index ccbfbb8..cdb79c4 100755
--- a/kaarvok
+++ b/kaarvok
@@ -22,5 +22,5 @@ if [ "${#@}" -lt 2 ]; then
exit 1
fi
-/usr/bin/emacs -Q -batch -l kaarvok.el -eval \
+/usr/bin/emacs -Q -batch -L $(dirname $0) -l kaarvok.el -eval \
"(kaarvok-create-project-from-template \"$1\" \"$2\")"