diff --git a/etc/profile.sh b/etc/profile.sh index 2e533a7457fd..e780b12988f6 100644 --- a/etc/profile.sh +++ b/etc/profile.sh @@ -60,6 +60,12 @@ done # Search directory for Aspell dictionaries. export ASPELL_CONF="dict-dir $NIX_USER_PROFILE_DIR/profile/lib/aspell" +# Search path for Emacs Lisp code. +export EMACSLOADPATH="" +for i in $NIX_PROFILES; do + export EMACSLOADPATH="$i/share/emacs/site-lisp:$EMACSLOADPATH" +done + export PATH=$HOME/bin:$PATH