Remove vertical whitespace and trailing slash.
Start all major-modes in emacs- or normal-state.