From 4007ca81e0105119c8ed754e654a731934f5154c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 8 Apr 2018 16:13:12 -0700 Subject: [emacs] Large refactoring. At first I wanted to add support for java, and then I realized that maintaining a giant file with all the packages was not working as I was expected. The configuration is broken down to multiple files now, with each major mode in a separate file, and the main modules in their own too. This should make it easier to maintain and organize. --- emacs.d/config/config-set-path.el | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 emacs.d/config/config-set-path.el (limited to 'emacs.d/config/config-set-path.el') 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) -- cgit 1.4.1