Erlang Alignment in Emacs


Just realized that the default align function in Emacs is quite capable. To indent, for example, a list of tuples with data, add the following alignment rule to your .emacs-file:

(add-hook 'align-load-hook
          (lambda ()
            (add-to-list 'align-rules-list
                           (regexp . ",\\(\\s-+\\)")
                           (repeat . t)
                           (modes quote (erlang-mode)

see full post!

19 notes

  1. wactbprot reblogged this from eproxus and added:
    see full post!
  2. eproxus posted this