how to use emacs key bindings for gtk3

do this to make gnome use the unix keys instead of being restricted to the stupid windows choices (home, end). and, yes, it "fixes" firefox text input fields.

for immediate relief:

dconf write /org/gnome/desktop/interface/gtk-key-theme "Emacs"

and to preserve across sessions:

use gconf-editor, or whatever, to figure out the current theme. assuming the theme is Adwaita, do (as root):

cp /usr/share/themes/Emacs/gtk-3.0/gtk-keys.css /usr/share/themes/Adwaita/gtk-3.0
cat /usr/share/themes/Emacs/gtk-2.0-key/gtkrc >> /usr/share/themes/Adwaita/gtk-2.0/gtkrc

updated: 2011-12-31