Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

, Hello, everyone

How can I change editing key-binding in Gnome on Ubuntu, and make it work like Emacs?

Eg. When I'm chat with my friend, and I want to use Ctrl-a Ctrl-k to move my cursor go to the left of current line, and then cut current line, as OSX or Emacs.
By default in Gnome Ubuntu, Ctrl-a is for "select all" and ctrl-k for nothing.

Where does this key binding define? And how can I change this?

I tried gnome-keybinding-properties and gsettings, find nothing.

Maybe I have to compile something?

share|improve this question

migrated from stackoverflow.com Oct 11 '11 at 20:36

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers

up vote 6 down vote accepted

I found the answer on an interesting bug report

This report show me two different way to change the key scheme on old and newer Gnome

I tried this on Ubuntu 11.10 ( with Gnome 3), it works!

gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"

If gsettings dosen't work, the following one may be available

gconftool-2 -s /desktop/gnome/interface/gtk_key_theme -t string Emacs

The bug report

share|improve this answer
    
This link Gnome tweak tool give a much more easy way to set emacs key bind. –  Douglas Apr 5 '12 at 8:53
add comment
  1. Use the following command:

    sudo apt-get install gnome-tweak-tool
    
  2. Open theme tab

  3. Change the keybind theme to emacs
share|improve this answer
add comment

You can find more details here: http://fvue.nl/wiki/Ctrl__bar_in_Mozilla

This page has the key bindings, which is very handy.

share|improve this answer
    
That page has nothing on it, are you sure you posted the right link? –  Simon Sheehan Nov 27 '11 at 16:18
add comment

Your Answer

 
discard

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.