Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm so used to emacs that sometimes, when I'm typing something in a textbox in firefox, I sometimes try and do C-p to move up a line. It is seriously annoying to have to cancel a print dialog box every time I try and move about my text. If it's not horrendously complicated, I'd like to have keybindings that emulate emacs inside textboxes in firefox...

Obviously, I wouldn't need all the keybindings, but movement, marking, killing and yanking would be useful.

Is this an insane request?

share|improve this question
up vote 12 down vote accepted

Is this an insane request?

No! :-)

You can install the Firemacs addon to get emacs keybindings in Firefox:

alt text

There's also a rather technical article on MozillaZine on how to enable Emacs-style key bindings for Firefox via GTK. Both work very well, but I recommend the extension since it's so easy to install.

share|improve this answer
Nice, although C-k goes weird on this site, because it is also the add code shortcut... – Seamus Jan 9 '11 at 16:58

To set emacs keybinding for all GTK based applications execute the following:

# legacy
gconftool-2 --set /desktop/gnome/interface/gtk_key_theme Emacs --type string

# modern / e.g. 12.04
gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"

See also Emacs Keybindings - Firefox

share|improve this answer
Thanks! This goes straight to my .bashrc :) – metakermit Feb 6 '13 at 10:26

Another option might be Conkeror. Based on its Wikipedia entry, "Conkeror is a Mozilla-based web browser designed to be navigated primarily by a computer keyboard. Its design is mainly patterned after the text editor GNU Emacs, with some influence from other programs, including vi."

I haven't actually used it so I can't recommend its quality, I've only heard of it. Might be something to check out though.

share|improve this answer

Another option is the "It's all text" add-on which allows you to edit textareas with your favorite editor. The add-on displays a small button labeld "edit" at the bottom of each textarea. When you press it, the editor you have configured (emacs) will be launched with a temporary file. When you save the file, its contents are transfered to the textarea. Really helpful for e. g. long wiki pages -- and you will have the complete, real emacs with all your customizations, not just an emulation of some of its keybindings.

share|improve this answer

If you are interested in having emacs keybindings everywhere in Gnome 3.x, you could change a few properties with gconf-editor, do a few hacks as listed in to get it done. Even I find myself pressing C-a and C-e in a lot of non-emacs applications

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.