summary refs log tree commit diff
path: root/emacs.d/config/config-set-path.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/config/config-set-path.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/emacs.d/config/config-set-path.el b/emacs.d/config/config-set-path.el
new file mode 100644
index 0000000..a22416d
--- /dev/null
+++ b/emacs.d/config/config-set-path.el
@@ -0,0 +1,9 @@
+(paradox-require 'exec-path-from-shell)
+
+(when (memq window-system '(x mac ns))
+  (exec-path-from-shell-initialize)
+  (dolist (var '("GEM_HOME" "GEM_PATH" "MY_RUBY_HOME"))
+    (unless (getenv var)
+      (exec-path-from-shell-copy-env var))))
+
+(provide 'config-set-path)