diff options
Diffstat (limited to 'tools/emacs/default.nix')
-rw-r--r-- | tools/emacs/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/emacs/default.nix b/tools/emacs/default.nix index 54bd0d80eafe..9573a888cb2a 100644 --- a/tools/emacs/default.nix +++ b/tools/emacs/default.nix @@ -105,12 +105,14 @@ in lib.fix(self: l: f: third_party.writeShellScriptBin "tazjins-emacs" '' # Build a derivation that uses the specified local Emacs (i.e. # built outside of Nix) instead withLocalEmacs = emacsBin: third_party.writeShellScriptBin "tazjins-emacs" '' + export EMACSLOADPATH="${(tazjinsEmacs f).deps}/share/emacs/site-lisp:" exec ${emacsBin} \ --debug-init \ --no-site-file \ + --no-site-lisp \ --no-init-file \ - --directory ${(tazjinsEmacs f).deps}/share/emacs/site-lisp \ - --directory ${./config} ${if l != null then "--directory ${l}" else ""} \ + --directory ${./config} \ + ${if l != null then "--directory ${l}" else ""} \ --eval "(require 'init)" $@ ''; }) null identity |