aleandros / emacs-rufo

Emacs integration with the Rufo ruby code formatter
MIT License
4 stars 2 forks source link

emacs-rufo

Simple package for integrating emacs with rufo.

Provides a function, rufo-format-buffer, which replaces the current buffer with its formatted version.

Instal rufo

$ gem install rufo

Note that if the installations is global you might need to run the previous command with sudo.

Enable format on save

Add this to your configuration file:

(setq rufo-enable-format-on-save t)

Key-binding

C-c f is enabled in both ruby and enh-ruby modes.