[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Keybindings for () and kill-region
From: |
Kevin Rodgers |
Subject: |
Re: Keybindings for () and kill-region |
Date: |
Tue, 20 Feb 2007 20:29:04 -0700 |
User-agent: |
Thunderbird 1.5.0.9 (Macintosh/20061207) |
Noah Tye wrote:
I've rebound C-w to backward-kill-word. What's a good replacement
binding for kill-region? (I've tried C-c C-k, but that's used by the
Python major mode.)
So what? C-w is used by all major modes, via global-map, and you
overwrote that binding.
I have to admit, I don't see how is C-w better than the default binding
(M-DEL), but I don't suppose any C-c LETTER binding (which are reserved
for users) will be to your liking.
Why not bind the key that was originally bound to backward-kill-word
(M-DEL) to kill-region?
Also, I'd like to bind C-J and C-K to '(' and ')'. Is there a way to
do this?
Sure:
(global-set-key "\C-j" "(") ; or [?\C-j] or (kbd "C-j") or ...
(global-set-key "\C-k" ")") ; or [?\C-k] or (kbd "C-k") or ...
--
Kevin Rodgers
Denver, Colorado, USA