gongo / rufo.el

Emacs minor-mode to automatically format ruby with rufo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rufo.el Build Status MELPA MELPA Stable

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 '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

About

Emacs minor-mode to automatically format ruby with rufo.


Languages

Language:Emacs Lisp 98.5%Language:Ruby 1.5%