summaryrefslogtreecommitdiff
path: root/emacs-helm.sh
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-05-04 12:13:13 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-05-04 12:13:13 +0200
commitf6bd52ab2dc7a76d84e89a24765c3d3c637637c3 (patch)
tree230e42beeca5fdeb66511ff9d556741875050319 /emacs-helm.sh
parentba171080eb4baa1f913c28caeefbb17589fcdacc (diff)
Get a default load-path value from emacs -q in emacs-helm.sh.
* emacs-helm.sh: Do it.
Diffstat (limited to 'emacs-helm.sh')
-rwxr-xr-xemacs-helm.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs-helm.sh b/emacs-helm.sh
index cc377321..8fe40e5a 100755
--- a/emacs-helm.sh
+++ b/emacs-helm.sh
@@ -40,6 +40,8 @@ case $1 in
;;
esac
+LOAD_PATH=$($EMACS -q -batch --eval "(prin1 load-path)")
+
cd $(dirname "$0")
# Check if autoload file exists.
@@ -77,6 +79,7 @@ cat > $CONF_FILE <<EOF
;; You will find embeded help for most helm commands with \`C-h m'.\n\
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\n"))
+(setq load-path (quote $LOAD_PATH))
(setq package-user-dir (directory-file-name
(file-name-directory
(directory-file-name default-directory))))