refactoring towards emacs++, an extensible Emacs setup