diff options
author | Alan Pearce | 2017-06-18 22:53:01 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-18 22:55:43 +0200 |
commit | 410d44b81165a38e59924ad93a3bfab030db6f36 (patch) | |
tree | 41980c7c5e25019e131637b134e097d839d3c22f /emacs/.emacs.d | |
parent | 625b5d8aaec0f366b88a265cc4bd4e823bf7bb85 (diff) | |
download | nixfiles-410d44b81165a38e59924ad93a3bfab030db6f36.tar.lz nixfiles-410d44b81165a38e59924ad93a3bfab030db6f36.tar.zst nixfiles-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')
-rw-r--r-- | emacs/.emacs.d/init.org | 4 |
1 files changed, 3 insertions, 1 deletions
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))) |