From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Keybindings for () and kill-region
Date: Tue, 20 Feb 2007 20:29:04 -0700 [thread overview]
Message-ID: <erge9h$vhg$1@sea.gmane.org> (raw)
In-Reply-To: <1171859288.645586.231760@v45g2000cwv.googlegroups.com>
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
next prev parent reply other threads:[~2007-02-21 3:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-19 4:28 Keybindings for () and kill-region Noah Tye
2007-02-21 3:29 ` Kevin Rodgers [this message]
2007-02-24 14:36 ` collger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='erge9h$vhg$1@sea.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.