From 12c9568de2cfba00e1d91e222cc447303deb8247 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Sat, 11 Mar 2017 17:01:38 -0500 Subject: [PATCH] Working with erb and Ruby gems --- emacs/init.el | 1 + zsh/.zshenv | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index 5a2f729..044429f 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -236,6 +236,7 @@ they line up with the line containing the corresponding opening bracket." (add-to-list 'auto-mode-alist '("\\.jsx?\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.scss\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode)) +(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode)) (setq web-mode-content-types-alist '(("jsx" . "\\.jsx?\\'"))) diff --git a/zsh/.zshenv b/zsh/.zshenv index eaa28d8..e5d45f8 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,4 +1,4 @@ -export PATH=$HOME/bin:$HOME/.local/bin:$PATH +export PATH=$HOME/bin:$HOME/.local/bin:$(ruby -rubygems -e "puts Gem.user_dir")/bin:$PATH export EDITOR='emacs' export VISUAL=$EDITOR