Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
26 lines
750 B
Bash
26 lines
750 B
Bash
addToEmacsLoadPath() {
|
|
local lispDir="$1"
|
|
if [[ -d $lispDir && ${EMACSLOADPATH-} != *"$lispDir":* ]] ; then
|
|
# 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="$lispDir:${EMACSLOADPATH-}"
|
|
fi
|
|
}
|
|
|
|
addToEmacsNativeLoadPath() {
|
|
local nativeDir="$1"
|
|
if [[ -d $nativeDir && ${EMACSNATIVELOADPATH-} != *"$nativeDir":* ]]; then
|
|
export EMACSNATIVELOADPATH="$nativeDir:${EMACSNATIVELOADPATH-}"
|
|
fi
|
|
}
|
|
|
|
addEmacsVars () {
|
|
addToEmacsLoadPath "$1/share/emacs/site-lisp"
|
|
|
|
if [ -n "${addEmacsNativeLoadPath:-}" ]; then
|
|
addToEmacsNativeLoadPath "$1/share/emacs/native-lisp"
|
|
fi
|
|
}
|
|
|
|
addEnvHooks "$targetOffset" addEmacsVars
|