From: "B. T. Raven" <ecinmn@peoplepc.com>
Subject: Re: global-set-key + query-replace-regexp
Date: Fri, 28 Oct 2005 16:45:18 GMT [thread overview]
Message-ID: <yAs8f.1348$m81.725@newsread1.news.atl.earthlink.net> (raw)
In-Reply-To: mailman.12914.1130425477.20277.help-gnu-emacs@gnu.org
<luca.spinacci@selex-comms.com> wrote in message
news:mailman.12914.1130425477.20277.help-gnu-emacs@gnu.org...
>
>
> I would like a short key to invoke query-replace-regexp command.
> I tried
> (global-set-key [f1] 'my-query-replace-regexp)
> (fset 'my-query-replace-regexp [?\C-\M-%])
> but the key "f1" invoke (M-x query-replace-regexp "" "" nil nil)
>
> ...Is there a way to call query-... interactively via a short
> key (M-x query-replace-regexp excepted!)?
>
> Thank you,
> Luca.
>
>
>
I have found that keeping fingers close to the home keys is more
conducive to efficiency than almost anything else. Since you quickly get
used to the M-x keychord (Alt-x on my Dozer), it's easier to add keys to
that sequence via an alias in your .emacs:
(defalias 'qrr 'query-replace-regexp) [This enables M-xqrr]
I would save the F-1 to F-12 keys for things that are done less often.
Ed
next parent reply other threads:[~2005-10-28 16:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.12914.1130425477.20277.help-gnu-emacs@gnu.org>
2005-10-28 16:45 ` B. T. Raven [this message]
2005-10-27 14:55 global-set-key + query-replace-regexp luca.spinacci
2005-10-27 15:55 ` Neon Absentius
2005-10-27 17:13 ` Peter Dyballa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='yAs8f.1348$m81.725@newsread1.news.atl.earthlink.net' \
--to=ecinmn@peoplepc.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).