gui: Add editor auto-indent

Signed-off-by: Michael Buesch <m@bues.ch>