summary refs log tree commit diff
path: root/emacs.d/modes/cfg-puppet.el
blob: e08848de2738d94e4d40e5cba5e452857e9b8cf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(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)
  :init
  (progn
    (add-hook 'puppet-mode-hook 'flycheck-mode)))

(provide 'cfg-puppet)