This is sql-indent for Emacs.
It was originally written by Alex Schroeder and used to live on emacswiki.org.
Usage:
Loading this file will make all SQL mode buffers created from then on use
sql-indent-line
for indentation. A possible way to install sql-indent.el would
be to add the following to your .emacs:
(use-package sql-indent
:load-path "~/path/to/sql-indent"
:after sql
:init (sql-indent-mode))
To run the tests:
- Install Cask
- Run `cask`.
- Run `make test`.