From 13822061c6fac2566668e8f105b2bab9d2d9922c Mon Sep 17 00:00:00 2001 From: Random936 Date: Thu, 15 Aug 2024 17:34:52 -0700 Subject: [PATCH] Added exec-path-from-shell to fix emacs on MacOS --- dotfiles/.emacs.d/config.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dotfiles/.emacs.d/config.org b/dotfiles/.emacs.d/config.org index bc57f08..0e1095a 100644 --- a/dotfiles/.emacs.d/config.org +++ b/dotfiles/.emacs.d/config.org @@ -106,6 +106,17 @@ Below are a few configuration changes to avoid TRAMP freezes when attempting to (setq tramp-remote-shell-args "-c") #+end_src +** Updating PATH from User Shell + +This package fixes issues with the path on MacOS by pulling the ~$PATH~ variable from the user's shell. + +#+begin_src emacs-lisp +(use-package exec-path-from-shell + :init + (when (memq window-system '(mac ns x)) + (exec-path-from-shell-initialize))) +#+end_src + * Package Manager Emacs and packages. Pretty much a requirement.