Simplify writing major-mode indentation functions.  Alternative to `smie'