emacs: almost done. Need more dwim, redo and tabs.