From 635c0fdaa7bc8bad6b42908f903a5f59914092bc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 17 Mar 2017 22:50:28 -0400 Subject: [PATCH] core-os: add doc comment to exec-path-from-shell --- core/core-os.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-os.el b/core/core-os.el index 727f0d3e6..fd47694bc 100644 --- a/core/core-os.el +++ b/core/core-os.el @@ -24,6 +24,10 @@ ;; Don't open files from the workspace in a new frame ns-pop-up-frames nil) + ;; A known problem with GUI Emacs on MacOS: it runs in an isolated + ;; environment, so envvars will be wrong. That includes the PATH Emacs + ;; picks up. `exec-path-from-shell' fixes this, and its result is cached. + ;; Run `doom/clear-cache' to regenerate exec-path if PATH changes. (cond ((display-graphic-p) ;; `exec-path-from-shell' is slow, so bring out the cache (setq exec-path