A common method when working with HTML in Common Lisp seems to transform S-expressions to HTML such that
(:h1 :class "foo" "Hello") => <h1 class="foo">Hello</h1>I like this method a lot, but the default indentation of Emacs/Slime bothers me:
(:h1 :class "foo"
"Hello")
The indentation code indents it as if :H1 was a function called with three arguments, which is understandable. It should be possible to make an exception for the case "non-quoted list whose first element starts with a colon" and rather indent it like this:(:h1 :class "foo"
"Hello")
Before I spend the weekend trying to modify the indentation code, I was wondering if anybody has done this before or know of a workaround?