emacs: many fixes. Something usable