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:
parent
a1a2f0bbbd
commit
d67dbec7e8
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue