Emacs: Make config work with non-X installations.