From 5fc4596f2a848c0dd83669ce4952feb9ef6f6ce2 Mon Sep 17 00:00:00 2001 From: Vedang Manerikar <ved.manerikar@gmail.com> Date: Thu, 12 Dec 2024 08:39:58 +0530 Subject: [PATCH] Load exec-path-from-shell only on Mac and Windows This is just a hygiene improvement, since I only use a Mac at the moment. Even so, it's a good change to have. --- unravel-emacs.org | 3 +++ unravel-modules/unravel-essentials.el | 1 + 2 files changed, 4 insertions(+) diff --git a/unravel-emacs.org b/unravel-emacs.org index 8108a37..ff50518 100644 --- a/unravel-emacs.org +++ b/unravel-emacs.org @@ -1098,8 +1098,11 @@ technicalities. :CUSTOM_ID: h:D4517B67-0D90-417E-97D7-60A08EABB3DA :END: +The ~PATH~ variable does not get set properly on Mac OSX and Windows machines, and due to this Emacs often does not find the right executables when calling external programs. ~exec-path-from-shell~ fixes this. + #+begin_src emacs-lisp :tangle "unravel-modules/unravel-essentials.el" (use-package exec-path-from-shell + :if (memq (window-system) '(mac ns)) :ensure t :demand t :config diff --git a/unravel-modules/unravel-essentials.el b/unravel-modules/unravel-essentials.el index 3adddb6..2b8ca5d 100644 --- a/unravel-modules/unravel-essentials.el +++ b/unravel-modules/unravel-essentials.el @@ -19,6 +19,7 @@ (setq debug-on-error t)) (use-package exec-path-from-shell + :if (memq (window-system) '(mac ns)) :ensure t :demand t :config