all repos — nixfiles @ 410d44b81165a38e59924ad93a3bfab030db6f36

System and user configuration, managed by nix and home-manager

Emacs: use exec-path-from-shell on Linux daemons As it's usually run via systemd, there isn't much of an environment

Alan Pearce
commit

410d44b81165a38e59924ad93a3bfab030db6f36

parent

625b5d8aaec0f366b88a265cc4bd4e823bf7bb85

1 file changed, 3 insertions(+), 1 deletion(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -408,7 +408,9 @@
#+BEGIN_SRC emacs-lisp (use-package exec-path-from-shell :if (or (eq system-type 'darwin) - (eq system-type 'gnu/linux/windows)) + (eq system-type 'gnu/linux/windows) + (and (eq system-type 'gnu/linux) + (daemonp))) :config (progn (setq exec-path-from-shell-arguments '("-l")) (exec-path-from-shell-initialize)))