Closed
Description
haskell-indentation
reacts to a couple of characters, most notably comma and semicolonbut also other chars.
Implement function that can be used in post-command-hook
that will:
- check if there is exactly one character on the line
- check if there is only one indentation position returned from
haskell-indentation-find-indentations
- do the indentation if both are true
- connect this function to
,;
and)}]
More info:
http://www.gnu.org/software/emacs/manual/html_node/ccmode/Electric-Keys.html