all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter <peter.milliken@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how do i create keyboard shortcut to specific query-replace?
Date: Tue, 1 Oct 2013 14:14:46 -0700 (PDT)	[thread overview]
Message-ID: <c9ceb177-f046-4509-9991-0fc10a56e920@googlegroups.com> (raw)
In-Reply-To: <mailman.3190.1380576360.10748.help-gnu-emacs@gnu.org>

create your keyboard macro, name it (`kmacro-name-last-macro' - bound to C-x C-k n), bind it to the key of your choice (`kmacro-bind-to-key' - bound to C-x C-x b), switch to your .emacs and then run 'insert-kbd-macro' with a numeric argument i.e. C-u M-x insert-kbd-macro (if you leave out the C-u then it will just insert the macro definition without the key binding code).

and the macro definition with a global-set-key sequence should be generated in your buffer. because you saved it in your .emacs it will be executed every time you start Emacs.

Hope this sounds like what you want :-)


  parent reply	other threads:[~2013-10-01 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3190.1380576360.10748.help-gnu-emacs@gnu.org>
2013-10-01  0:48 ` how do i create keyboard shortcut to specific query-replace? Dan Espen
2013-10-01 21:14 ` Peter [this message]
2013-09-30 16:36 Hod b

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=c9ceb177-f046-4509-9991-0fc10a56e920@googlegroups.com \
    --to=peter.milliken@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.