summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-01-31 14:29:17 +0100
committerAlan Pearce2017-01-31 14:29:17 +0100
commit4023678dd3408f5623b1a52155a447b31deb54ac (patch)
treec0cd38423e863c1d7013d8c8d2752422ef7990a0
parent904e37311218a1ab484aca9a25af85ff3a75cd92 (diff)
downloadnixfiles-4023678dd3408f5623b1a52155a447b31deb54ac.tar.lz
nixfiles-4023678dd3408f5623b1a52155a447b31deb54ac.tar.zst
nixfiles-4023678dd3408f5623b1a52155a447b31deb54ac.zip
Emacs: Use exec-path-from-shell on macOS
-rw-r--r--tag-emacs/emacs.d/init.org13
1 files changed, 13 insertions, 0 deletions
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