aleandros / emacs-rufo

Emacs integration with the Rufo ruby code formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Emacs integration with the Rufo ruby code formatter

License:MIT License


Languages

Language:Emacs Lisp 100.0%