To enable formatting ruby-mode buffers on save with rubocopfmt, simply enable
rubocopfmt-mode within ruby-mode with something like this in your config:
(add-hook'ruby-mode-hook#'rubocopfmt-mode)
Commands
rubocopfmt - Format current buffer with RuboCop.
rubocopfmt-mode - Toggle formatting on save on/off.
Description
Emacs minor-mode to format Ruby code with RuboCop on save.