Clean up emacs/default.nix

- Prefer prepending wpcDir, vendorDir to EMACSLOADPATH instead of using the
  --directory flag
- Remove --load ${wpcPackageEl} because init.el calls (require 'wpc-package)
- Surround $@ in 2x-quotes
This commit is contained in:
William Carroll 2020-08-27 18:25:14 +01:00
parent a1a2f0bbbd
commit d67dbec7e8

View file

@ -138,17 +138,14 @@ let
export XMODIFIERS=emacs
export BRIEFCASE=$HOME/briefcase
export PATH="${emacsBinPath}:$PATH"
export EMACSLOADPATH="${wpcarrosEmacs.deps}/share/emacs/site-lisp:"
export EMACSLOADPATH="${wpcDir}:${vendorDir}:${wpcarrosEmacs.deps}/share/emacs/site-lisp:"
exec ${emacsBin} \
--debug-init \
--no-site-file \
--no-site-lisp \
--directory ${vendorDir} \
--directory ${wpcDir} \
--load ${wpcPackageEl} \
--load ${initEl} \
--no-init-file \
$@
"$@"
'';
in {
# Use `nix-env -f '<briefcase>' emacs.glinux` to install `wpcarro-emacs` on