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 XMODIFIERS=emacs
|
||||||
export BRIEFCASE=$HOME/briefcase
|
export BRIEFCASE=$HOME/briefcase
|
||||||
export PATH="${emacsBinPath}:$PATH"
|
export PATH="${emacsBinPath}:$PATH"
|
||||||
export EMACSLOADPATH="${wpcarrosEmacs.deps}/share/emacs/site-lisp:"
|
export EMACSLOADPATH="${wpcDir}:${vendorDir}:${wpcarrosEmacs.deps}/share/emacs/site-lisp:"
|
||||||
exec ${emacsBin} \
|
exec ${emacsBin} \
|
||||||
--debug-init \
|
--debug-init \
|
||||||
--no-site-file \
|
--no-site-file \
|
||||||
--no-site-lisp \
|
--no-site-lisp \
|
||||||
--directory ${vendorDir} \
|
|
||||||
--directory ${wpcDir} \
|
|
||||||
--load ${wpcPackageEl} \
|
|
||||||
--load ${initEl} \
|
--load ${initEl} \
|
||||||
--no-init-file \
|
--no-init-file \
|
||||||
$@
|
"$@"
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
# Use `nix-env -f '<briefcase>' emacs.glinux` to install `wpcarro-emacs` on
|
# Use `nix-env -f '<briefcase>' emacs.glinux` to install `wpcarro-emacs` on
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue