all repos — archive/dotfiles @ 4023678dd3408f5623b1a52155a447b31deb54ac

Superseded by nixfiles

Emacs: Use exec-path-from-shell on macOS

Alan Pearce
commit

4023678dd3408f5623b1a52155a447b31deb54ac

parent

904e37311218a1ab484aca9a25af85ff3a75cd92

1 file changed, 13 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -31,6 +31,19 @@ (setq user-mail-address "alan@alanpearce.co.uk"
user-full-name "Alan Pearce") #+end_src +** Environment Variables + +MacOS doesn’t have a reasonable way to set environment variables and +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. + +#+BEGIN_SRC emacs-lisp +(use-package exec-path-from-shell + :if (eq system-type 'darwin) + :init (exec-path-from-shell-initialize)) +#+END_SRC + * Packaging ** Use-package