How do I enable Emacs keybindings in apps, such as Google Chrome?
Solution 1:
If you're using gtk3 the settings are in the libgtk-3-common
package in /usr/share/themes/Emacs/gtk-3.0/gtk-keys.css
and you can enable them with:
gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"
And to switch back:
gsettings set org.gnome.desktop.interface gtk-key-theme "Default"
If you're using gtk2 the settings are in the libgtk2.0-common
package in /usr/share/themes/Emacs/gtk-2.0-key/gtkrc
and you can enable them with:
gconftool-2 --type=string --set /desktop/gnome/interface/gtk_key_theme Emacs
And if you want to customize the keybindings you can copy the settings into ~/.themes/
with cp -r /usr/share/themes/Emacs ~/.themes/
ps. so does this mean you've managed to win the battle against Unity to steal all your modify keys back for Emacs to use?! :)
Solution 2:
As of Chrome 59, which switched to gtk3, set gtk-key-theme-name
to Emacs
in ~/.config/gtk-3.0/settings.ini
:
[Settings]
gtk-key-theme-name = Emacs