emacs package setup hook: Fix Fix
A trailing separator in emacs load paths has semantics cc @Ericson2314 @adisbladis https://github.com/NixOS/nixpkgs/pull/73287 This partially reverts commit ca782498a9532c48d8e12ce402813486ab90e7f0
This commit is contained in:
parent
c3a0db00aa
commit
42eeca722c
@ -1,6 +1,8 @@
|
|||||||
addEmacsVars () {
|
addEmacsVars () {
|
||||||
if [[ -d "$1/share/emacs/site-lisp" ]]; then
|
if test -d $1/share/emacs/site-lisp; then
|
||||||
export EMACSLOADPATH="$1/share/emacs/site-lisp${EMACSLOADPATH:+:}${EMACSLOADPATH-}"
|
# it turns out, that the trailing : is actually required
|
||||||
|
# see https://www.gnu.org/software/emacs/manual/html_node/elisp/Library-Search.html
|
||||||
|
export EMACSLOADPATH="$1/share/emacs/site-lisp:${EMACSLOADPATH-}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user