Emacs keybindings in GNOME Evolution 3.x

The old way wouldnt work with the GNOME Evolution 3.x that comes in Debian Wheezy. So, after a little digging around GtkHTML's sources, here..:
  1. Run 'gconf-editor'.
  2. Browse to "/desktop/gnome/interface/can_change_accels" and enable it.
  3. Browse to "/desktop/gnome/interface/gtk_key_theme" and set it to "Emacs".
  4. Start Evolution and open a new message. Hover your mouse over the 'menu items' whose key-bindings interfere with the normal Emacs world bindings (e.g: Print, Copy, Search, ...) and press "Del". This will 'unbind' those shortcuts from those menus. Close Evolution.
  5. Download this and put it in ~/.config/gtk-3.0/gtk.css
  6. Open a terminal and run:

    $ gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"
    $ chmod u-w ~/.gnome2/accels/evolution
  7. Enjoy "Ctrl+N", "Ctrl+P".. etc in the composer.
Update 1: stripped the tags in the gtk.css content posted here. So, linked it to a file hosted elsewhere.

No comments: