commit 996b9d564b5e25b2969704de4a730635f3dcddf5
parent b5a61f3524ef71ed75368ea45203ac85c265e646
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 19 Sep 2018 15:58:04 +0200
Try to fix env inside emacs daemon
… at least flyspell is fixed
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs.nix b/emacs.nix
@@ -10,7 +10,7 @@
PATH=/home/vincent/bin:/home/vincent/.local/npm/bin:/run/wrappers/bin:/etc/profiles/per-user/vincent/bin:${config.home.profileDirectory}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin GOPATH=/home/vincent ASPELL_CONF=dict-dir=/home/vincent/.nix-profile/lib/aspell
'';
Type = "forking";
- ExecStart = "/home/vincent/.nix-profile/bin/emacs --daemon";
+ ExecStart = "${pkgs.bash}/bin/bash -c 'source /etc/profile; exec /home/vincent/.nix-profile/bin/emacs --daemon'";
ExecStop = "/home/vincent/.nix-profile/bin/emacsclient --eval (kill-emacs)";
Restart = "always";
};
@@ -27,7 +27,7 @@
PATH=/home/vincent/bin:/home/vincent/.local/npm/bin:/run/wrappers/bin:/etc/profiles/per-user/vincent/bin:${config.home.profileDirectory}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin GOPATH=/home/vincent ASPELL_CONF=dict-dir=/home/vincent/.nix-profile/lib/aspell
'';
Type = "forking";
- ExecStart = "/home/vincent/.nix-profile/bin/emacs --daemon=org";
+ ExecStart = "${pkgs.bash}/bin/bash -c 'source /etc/profile; exec /home/vincent/.nix-profile/bin/emacs --daemon=org'";
ExecStop = "/home/vincent/.nix-profile/bin/emacsclient --socket-name=org --eval (kill-emacs)";
Restart = "always";
};