From 439d40da27dfe78f0b00f191791d72d75fdc631c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 25 May 2016 16:49:30 -0700 Subject: [emacs] copy environment variables for Ruby This is needed to get 'puppet-lint' running correctly. --- emacs.d/modes/cfg-puppet.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs.d/modes/cfg-puppet.el b/emacs.d/modes/cfg-puppet.el index d505ffc..e08848d 100644 --- a/emacs.d/modes/cfg-puppet.el +++ b/emacs.d/modes/cfg-puppet.el @@ -1,3 +1,8 @@ +(when (memq window-system '(mac ns x)) + (dolist (var '("GEM_HOME" "MY_RUBY_HOME")) + (unless (getenv var) + (exec-path-from-shell-copy-env var)))) + (use-package puppet-mode :ensure t :mode ("\\.pp$" . puppet-mode) -- cgit 1.4.1