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

My URxvt is mapping the Ctrl+Backspace key combination to Ctrl+H. This is extremely annoying when using GNU Emacs.

How do I change that behavior?

share|improve this question
up vote 2 down vote accepted

After searching some more for this solution, I've found out an alternate solution. I'm mapping Ctrl+BackSpace to some other key combination and then I'm mapping this new combination to the desired behavior in my GNU Emacs.

To achieve this, add this to ~/.Xdefaults (or whatever your distro uses for this):

URxvt.keysym.C-BackSpace: \033[33~

I'll leave this question open until a proper alternative appears (one that makes urxvt simply ignore it).

BONUS

To map this new key binding into GNU Emacs, you can use the describe-key function (usually C-h k) and type Ctrl+BackSpace to find out how the editor is seeing this stuff. In my case, it was "S-". To achieve the desired behavior, in my case, I added this to ~/.emacs:

(global-set-key (kbd "S-<f9>") 'backward-kill-word)
share|improve this answer

You must log in to answer this question.

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