summary refs log tree commit diff stats
path: root/user/emacs/.emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2019-11-11 11:20:43 +0100
committerAlan Pearce2019-11-11 11:20:43 +0100
commitc5baab42e00a96f1cad8e2dd39aa1d6e5fb6cd17 (patch)
tree2755ce2c81d616846ceff635ad9d63e34a637691 /user/emacs/.emacs.d
parent12e113b5d793120df131473e8dd96e385e6be2e6 (diff)
parentb53a05c7a0941ce8b7a480d9cbf317578dbac031 (diff)
downloadnixfiles-c5baab42e00a96f1cad8e2dd39aa1d6e5fb6cd17.tar.lz
nixfiles-c5baab42e00a96f1cad8e2dd39aa1d6e5fb6cd17.tar.zst
nixfiles-c5baab42e00a96f1cad8e2dd39aa1d6e5fb6cd17.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'user/emacs/.emacs.d')
-rw-r--r--user/emacs/.emacs.d/init.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index f608d4cf..701156a3 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -17,6 +17,22 @@
   (setq use-package-expand-minimally t))
 (setq use-package-always-demand (daemonp))
 
+(defvar ap/path-configured nil)
+(when (and (eq system-type 'darwin)
+           (not ap/path-configured))
+  (setq exec-path
+        (delete-dups
+         (append
+          (parse-colon-path
+           (elt (split-string-and-unquote
+                 (with-output-to-string
+                   (with-current-buffer standard-output
+                     (call-process "/usr/libexec/path_helper" nil t nil "-s")))
+                 "[=;]")
+                1))
+          exec-path))
+        ap/path-configured t))
+
 ;;; Customize
 
 (setq custom-file "~/.emacs.d/custom.el")