rufo.el [](https://travis-ci.org/danielma/rufo.el) [](https://melpa.org/#/rufo) [](https://stable.melpa.org/#/rufo)

November 12, 2019 ยท View on GitHub

Minor-mode to automatically format ruby with rufo.

Note: rufo.el only supports rufo >= 0.0.38 because of the exit codes introduced in that version.

Usage

Ensure that you have rufo installed and in your path.

Then, in your init.el:

(add-hook 'ruby-mode-hook 'rufo-minor-mode)

Options

rufo-mode has first-class support for using rufo with bundler

(setq rufo-minor-mode-use-bundler t)

You can change the location of rufo.

(setq rufo-minor-mode-executable "rufa")

You can enable rufo-minor-mode-debug-mode which will output additional info into the messages buffer

Thanks