diff options
author | Benjamin Orthen <benjamin@orthen.net> | 2020-02-17 01:55:16 +0100 |
---|---|---|
committer | Benjamin Orthen <benjamin@orthen.net> | 2020-02-17 01:55:16 +0100 |
commit | 6a6b608826d2c47e47cbeacbea9ac5ae31d05646 (patch) | |
tree | 9498cb2d336d4883ccaa85e31dd40cafdd03c484 /emacs-helm.sh | |
parent | 7c5d910162ea33197b7e3656355f9b2eb2f538f2 (diff) |
Respect that emacs config-folder can now be in $XDG_CONFIG_HOME
* Make use of locate-user-emacs-file
* Change Makefile to check first if $(XDG_CONFIG_HOME)/emacs/elpa or
~/.config/emacs/elpa exists and if not, fall back to ~/.emacs.d/elpa
Diffstat (limited to 'emacs-helm.sh')
-rwxr-xr-x | emacs-helm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs-helm.sh b/emacs-helm.sh index 848a72c6..568048b9 100755 --- a/emacs-helm.sh +++ b/emacs-helm.sh @@ -179,7 +179,7 @@ cat > $CONF_FILE <<EOF ;; User may be using a non standard \`package-user-dir'. ;; Modify \`package-directory-list' instead of \`package-user-dir' ;; in case the user starts Helm from a non-ELPA installation. -(unless (file-equal-p package-user-dir "~/.emacs.d/elpa") +(unless (file-equal-p package-user-dir (locate-user-emacs-file "elpa")) (add-to-list 'package-directory-list (directory-file-name (file-name-directory (directory-file-name default-directory))))) |