From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Newsgroups: gmane.emacs.help Subject: Re: how do i create keyboard shortcut to specific query-replace? Date: Tue, 1 Oct 2013 14:14:46 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1380662122 13108 80.91.229.3 (1 Oct 2013 21:15:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Oct 2013 21:15:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 01 23:15:24 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VR7Hr-0007iC-FR for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Oct 2013 23:15:19 +0200 Original-Received: from localhost ([::1]:32822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR7Hq-0001GL-Q5 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Oct 2013 17:15:18 -0400 X-Received: by 10.224.5.5 with SMTP id 5mr22818783qat.4.1380662086988; Tue, 01 Oct 2013 14:14:46 -0700 (PDT) X-Received: by 10.50.73.39 with SMTP id i7mr775538igv.1.1380662086941; Tue, 01 Oct 2013 14:14:46 -0700 (PDT) Original-Path: usenet.stanford.edu!q9no765487qas.0!news-out.google.com!9ni1076qaf.0!nntp.google.com!q9no765483qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=161.43.88.196; posting-account=xn0CbQoAAAASWsnV689K01BfDuqsREZp Original-NNTP-Posting-Host: 161.43.88.196 User-Agent: G2/1.0 Injection-Date: Tue, 01 Oct 2013 21:14:46 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:201512 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93781 Archived-At: 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 t= o 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 th= en 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 ev= ery time you start Emacs. Hope this sounds like what you want :-)