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.

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

1 Answer 1

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

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.