From 6ab6e58ab30e3e96210099151ae365fa79477b56 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 1 Jun 2017 21:54:07 +0200 Subject: Emacs: Use exec-path-from-shell on gnu/windows --- emacs/.emacs.d/init.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'emacs') 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))) -- cgit 1.4.1