Format your Scala code with scalariform in Emacs.
brew install scalariform
It is recommended installed by the MELPA package system.
You could install it by M-x
: with package-install
: scalariform
.
M-x:
with command scalariform-format-region
or scalariform-format-region-or-buffer
.
If you want to use a property file for scalariform, you can
(setq scalariform-use-properties-file-p t)
(setq scalariform-properties-file "~/.scalariform.conf")
You can also customize the variable scalariform-program-args
to past extra arguments to scalariform.