summary refs log tree commit diff stats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 22:53:01 +0200
committerAlan Pearce2017-06-18 22:55:43 +0200
commit410d44b81165a38e59924ad93a3bfab030db6f36 (patch)
tree41980c7c5e25019e131637b134e097d839d3c22f /emacs/.emacs.d/init.org
parent625b5d8aaec0f366b88a265cc4bd4e823bf7bb85 (diff)
downloaddotfiles-410d44b81165a38e59924ad93a3bfab030db6f36.tar.lz
dotfiles-410d44b81165a38e59924ad93a3bfab030db6f36.tar.zst
dotfiles-410d44b81165a38e59924ad93a3bfab030db6f36.zip
Emacs: use exec-path-from-shell on Linux daemons
As it's usually run via systemd, there isn't much of an environment
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index ee56d8f..645bdcd 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)))