nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at netboot-syslinux-multiplatform 34 lines 1.1 kB view raw
1addToEmacsLoadPath() { 2 local lispDir="$1" 3 if [[ -d $lispDir && ${EMACSLOADPATH-} != *"$lispDir":* ]] ; then 4 # It turns out, that the trailing : is actually required 5 # see https://www.gnu.org/software/emacs/manual/html_node/elisp/Library-Search.html 6 export EMACSLOADPATH="$lispDir:${EMACSLOADPATH-}" 7 fi 8} 9 10addToEmacsNativeLoadPath() { 11 local nativeDir="$1" 12 if [[ -d $nativeDir && ${EMACSNATIVELOADPATH-} != *"$nativeDir":* ]]; then 13 export EMACSNATIVELOADPATH="$nativeDir:${EMACSNATIVELOADPATH-}" 14 fi 15} 16 17addEmacsVars () { 18 addToEmacsLoadPath "$1/share/emacs/site-lisp" 19 20 if [ -n "${addEmacsNativeLoadPath:-}" ]; then 21 addToEmacsNativeLoadPath "$1/share/emacs/native-lisp" 22 fi 23 24 # Add sub paths to the Emacs load path if it is a directory 25 # containing .el files. This is necessary to build some packages, 26 # e.g., using trivialBuild. 27 for lispDir in \ 28 "$1/share/emacs/site-lisp/"* \ 29 "$1/share/emacs/site-lisp/elpa/"*; do 30 if [[ -d $lispDir && "$(echo "$lispDir"/*.el)" ]] ; then 31 addToEmacsLoadPath "$lispDir" 32 fi 33 done 34}