help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do i create keyboard shortcut to specific query-replace?


From: Peter
Subject: Re: how do i create keyboard shortcut to specific query-replace?
Date: Tue, 1 Oct 2013 14:14:46 -0700 (PDT)
User-agent: G2/1.0

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 :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]