Emacs fixes

* Add workaround for emacs 24 and themes
* Add workaround for emacs and dead keys for ubuntu