firefox - emacs key bindings
firefox uses gtk settings for key bindings. there are two ways to set these, depending upon the firefox version, and whether or not one is running gnome.
without gnome
update the gtkrc file. for newer versions, the filename is
$HOME/.gtkrc-2.0
, older versions it is $HOME/.gtkrc
. add this line:
gtk-key-theme-name = "Emacs"
IIRC, this will require a restart of gtk, hence the windows session.
with gnome
use the gconf editor. from the command line, run:
gconftool-2 --set /desktop/gnome/interface/gtk_key_theme Emacs --type string
this should take effect immediately.
keybindings
Ctrl+A |
Go to beginning of line |
Ctrl+E |
Go to end of line |
Ctrl+F |
Go right one character |
Ctrl+B |
Go left one character |
Ctrl+P |
Go to previous line ("up") (only works in multiline text areas) |
Ctrl+N |
Go to next line ("down") (only works in multiline text areas) |
Ctrl+K |
Delete to end of line (if cursor is at the end of the line, deletes the following newline) |
Ctrl+U |
Delete entire line (different from readline, in which Ctrl+U deletes to the beginning of the line) |
Ctrl+W |
Delete word, left |
Ctrl+H |
Delete character, left (backspace) |
Ctrl+D |
Delete character, right |
Unsupported keys
Ctrl+T |
transpose characters |
Ctrl+Y |
yank (like paste) |
Ctrl+S |
search |
Ctrl+R |
reverse search |
Ctrl+J |
return |
Ctrl+M |
carriage return |
Ctrl+L |
redraw |
this information taken from Emacs Keybindings - Firefox on 2/6/2013.