unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Neon Absentius <absent@sdf.lonestar.org>
Subject: Re: global-set-key + query-replace-regexp
Date: Thu, 27 Oct 2005 15:55:12 +0000	[thread overview]
Message-ID: <20051027155512.GB8593@SDF.LONESTAR.ORG> (raw)
In-Reply-To: <OFFF6C7A7F.A0D8C1CA-ONC12570A7.0056EC1F@SeleniaComms.com>

On Thu, Oct 27, 2005 at 04:55:21PM +0200, luca.spinacci@selex-comms.com wrote:
> 
> 
> 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)
> 

Try

(global-set-key (kbd "<f1>") 'name-of-command)

HTH
-- 
 There is no national science just as there is no national
multiplication table; what is national is no longer science.
         -- Anton Checov

  reply	other threads:[~2005-10-27 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-27 14:55 global-set-key + query-replace-regexp luca.spinacci
2005-10-27 15:55 ` Neon Absentius [this message]
2005-10-27 17:13 ` Peter Dyballa
     [not found] <mailman.12914.1130425477.20277.help-gnu-emacs@gnu.org>
2005-10-28 16:45 ` B. T. Raven

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=20051027155512.GB8593@SDF.LONESTAR.ORG \
    --to=absent@sdf.lonestar.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.
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).