convert 'indent' and 'toggle comment' to command handlers