All pastes #1867902 Raw Edit

Emacs keybinding support in gtk/

public text v1 · immutable
#1867902 ·published 2010-04-19 14:44 UTC
rendered paste body

GTK/Gnome users. You can put the following two lines in a file called .gtkrc-2.0 in your home directory and you will get emacs like keybinding support in programs like Firefox. Then you can use Ctrl-U to clear your address bar, Ctrl-A and Ctrl-E to go to the beginning and end of line, etc.

include "/usr/share/themes/Emacs/gtk-2.0-key/gtkrc"
gtk-key-theme-name = "Emacs"


You'll need to change the include line to point at wherever your Emacs/gtk-2.0-key/gtkrc is on your system.

Follow @climagic on twitter and identi.ca