Super User is a question and answer site for computer enthusiasts and power users. 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 am looking for a way to define an Emacs-style keys sequence as a keyboard shortcut in Linux - Specifically, in Gnome, but more general solutions are also acceptable.

For example, I would like a sequence like "Alt-w t" (that is, first press Alt-w and then t) to open a terminal, "Alt-w c" to close a window, and so on.

The rationale behind this question is twofold:

  1. Make more use of desktop-wide keyboard shortcuts
  2. Make an old keyboard, that has no Win key, usable with desktop-wide keyboard shortcuts, without causing too many collisions with application - Specifically with Emacs.


share|improve this question
up vote 2 down vote accepted

xpybind is for binding X commands to Emacs style key sequences.

share|improve this answer

Nothing to do with Gnome, but have you ever considered Ratpoison? With that you'll make a very great keyboard use!

share|improve this answer
you are serious to suggest a tiling windowmanager to the op's question? :) – akira May 3 '10 at 10:50
Yes, also because he mentioned Emacs and Ratpoison is far from being a tiling wm: it's more a buffer window manager, like screen, and has some behaviour comparable to emacs. I switched from gnome to ratpoison on my laptop, hence the suggestion! – dag729 May 3 '10 at 11:02
I know of lightweight WM such as Ratpoison et al. Unfortunately I don't have much time right now to arrange my desktop from scratch. I was hoping for a more mainstream solution, or, alt., something that works directly on the X server. – Little Bobby Tables May 3 '10 at 11:11
Fair enough but, if you like to give it a go, I can address you to, where you'll find some useful and ready to use .ratpoisonrc. Just add .ratpoisonrc after; if you want to find other dotfiles use the same pattern, that is appending a .something after – dag729 May 3 '10 at 12:46

with openbox and obkeys you can do that. LUbuntu for example uses openboy, but you can install it yourself. Howevery its a rather heavy modification of your system as

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .