Last Updated: February 25, 2016
·
948
· arthurnn

Bundle install inside emacs

If you ever wanna test a new gem, or just download a new repo, and need to bundle install the gems, you can do it from inside emacs, just add this to your init.el:

(eval-after-load 'ruby-mode
  '(progn
     (define-key ruby-mode-map (kbd "C-c b")
       (lambda () (interactive) (async-shell-command "bundle install" "**Bundler**")))))

After that, Just press C-c b, and emacs will run bundle install in the current folder.