ElispFormat

Format your elisp code and save your time, you don’t need to format elisp code line by line. :)

What is ElispFormat?

ElispFormat is a mode that format elisp code.

Install

Put Lisp:elisp-format.el in your load-path, and add
        (require 'elisp-format)
in your ~/.emacs

Command List

Format region or defun.
Format buffer.
Format file.
Format file with ‘batch’.
Format recursive elisp files under specify directory.
Format recursive elisp files under specify directory, but with ‘batch’.
Format dired marked files.
Format library file.

Customize

All below option can customize by: M-x customize-group RET elisp-format RET

The program name for execute batch command.
The column number to truncate long line.
Whether indent comment.
Whether confirmation is needed to format dired marked files.
The list contain addons keywords for newline.
The list contains except keywords for newline.
The list contains addons keywords that will split it’s sub-expression.
The list contains except keywords that will split it’s sub-expression.
The alist contains keep keyword when split it’s sub-expression.

Tips

Notes

I can’t ensure this package will do a perfect work with all situations, I have test it with all elisp files that are builtin GNU Emacs 23.0.60.1. So please let me know if you have any suggestion or bug. – AndyStewart