From 410d44b81165a38e59924ad93a3bfab030db6f36 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 18 Jun 2017 22:53:01 +0200 Subject: Emacs: use exec-path-from-shell on Linux daemons As it's usually run via systemd, there isn't much of an environment --- emacs/.emacs.d/init.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index ee56d8f4..645bdcd6 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -408,7 +408,9 @@ It starts up without an environment in this case as well. #+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))) -- cgit 1.4.1