diff options
author | Alan Pearce | 2017-06-01 21:54:07 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-01 21:54:07 +0200 |
commit | 6ab6e58ab30e3e96210099151ae365fa79477b56 (patch) | |
tree | 2553c7f8974b0fffdd538c317475dcb78b494ba0 /emacs | |
parent | 3a26b26766454af43ea39018a0ba1890bec99630 (diff) | |
download | dotfiles-6ab6e58ab30e3e96210099151ae365fa79477b56.tar.lz dotfiles-6ab6e58ab30e3e96210099151ae365fa79477b56.tar.zst dotfiles-6ab6e58ab30e3e96210099151ae365fa79477b56.zip |
Emacs: Use exec-path-from-shell on gnu/windows
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/init.org | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index da47658..8ccca9a 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -398,9 +398,13 @@ read them automatically any more. So, let’s use the [[https://github.com/purcell/exec-path-from-shell][exec-path-from-shell]] package to set up ~exec-path~ and similar variables from whatever my shell configuration is. +On Windows, I like to run Emacs from the system tray menu of VcXsrv. +It starts up without an environment in this case as well. + #+BEGIN_SRC emacs-lisp (use-package exec-path-from-shell - :if (eq system-type 'darwin) + :if (or (eq system-type 'darwin) + (eq system-type 'gnu/linux/windows)) :config (progn (setq exec-path-from-shell-arguments '("-l")) (exec-path-from-shell-initialize))) |