From 4023678dd3408f5623b1a52155a447b31deb54ac Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 31 Jan 2017 14:29:17 +0100 Subject: Emacs: Use exec-path-from-shell on macOS --- tag-emacs/emacs.d/init.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index a982840f..75d62e2e 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -31,6 +31,19 @@ the buffer to be empty. 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 -- cgit 1.4.1