On 2017-02-19, Grant Edwards <grant.b.edwa...@gmail.com> wrote: > I _used_ to have emacs key-bindings in Firefox, but for some reason > that stopped working and now I have Windows key bindings. It _may_ > have happened when I switched from XFCE to Openbox. > > After Googling a while, I've tried: > > $ dconf write /org/gnome/desktop/interface/gtk-key-theme "'Emacs'" > $ gconftool-2 --type=string --set /desktop/gnome/interface/gtk_key_theme > Emacs > $ gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs" > > And setting gtk-key-theme-name = "Emacs" in the following files: > > ~/.gtkrc-2.0 > ~/.gtkrc-3.0 > ~/.config/gtk-3.0/settings.ini > ~/.config/gtk-2.0/settings.ini > > Nothing works. I still have Windows key-bindings in Firefox.
The answer is to put the following line in ~/.gtkrc-2.0 gtk-key-theme-name = "Emacs" _without_ the '[Settings]' section header in front of it (that's apparently a gtk-3 thing). For weeks I've thought Firefox was flaking out: odd menus popping up, input focus shifting around randomly, field values vanishing and various other sorts of weirdness. Finally I realized that it had switched to Windows key bindings instead of emacs. [I've been using emacs key bindings for so long, I'm not even conscious of it most of the time. Watching me try to use Windows programs is probably pretty funny... until I throw a Donald.] -- Grant