Use Firefox on *nix? Want
Emacs key bindings in text fields? As
described in the
MozillaZine knowledge base,
add this to your
gtk-key-theme-name = "Emacs"
This will give you many Emacs key bindings, specifically C-a, C-e, C-f, C-b, C-k, C-u, C-w, C-h, and C-d. However, you won’t get C-y, C-p, C-n, C-s, C-r, C-j, C-m, and C-l, since they’re overridden by menu item accelerators.
To get those key bindings too, go to about:config and set ui.key.accelKey to 18. This switches Firefox’s accelerator key from Ctrl to Alt. So, you’ll need to use Alt-L to go to the URL box, Alt-T to open a new tab, etc…but you’ll be able to use all the Emacs keybindings burned into your muscle memory!
Thanks to David Chandler for this tip.
6 thoughts on “emacs keybindings in firefox”
Changing accelKey to 18 doesn’t seem to enable the extra emacs keys (Firefox 220.127.116.11 on Ubuntu Linux).
For some reason, editing the .gtkrc-2.0 file doesn’t work for me in Gnome 2.14. However, I found an even easier way to do it. Just run this command:
gconftool-2 --set /desktop/gnome/interface/gtk_key_theme Emacs --type string
(You can use –unset if you decide you don’t like it).
Hey, you should check out Conkeror.
Hardcore hacks for making firefox more emacs-like:
I highly recommend to check out vimperator!
..in conjunction with firemacs for emacs bindings, of course.
It’s all text:
Works for firefox and conkeror.
This message was written in an emacsclient buffer ;)