I used to work on some really messy rules files that were written by a group of people using different editors that resulted in different indentation and parenthesis opening styles (should you put { on the same line or next line of your if statement?).
My solution is to write my own major mode for the rules files and reformat them. It made life a lot easier!
Want to see how it looks like? Check the htmlized rules file below:
Want to try it out? Copy the file into your local Emacs library directory (~/.emacs.d/lisp in my case) and add a line:
(require 'rules-mode)