* Saving macros defined on-the-fly (F3, F4)
@ 2019-01-22 21:27 jonetsu
2019-01-22 22:31 ` Skip Montanaro
2019-01-23 9:02 ` Gregor Zattler
0 siblings, 2 replies; 4+ messages in thread
From: jonetsu @ 2019-01-22 21:27 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
On Linux systems, is it possible to save a macro quickly defined using
F3 and F4 and have it recalled at a later time and run by pressing
F4 ?
Cheers.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Saving macros defined on-the-fly (F3, F4)
2019-01-22 21:27 Saving macros defined on-the-fly (F3, F4) jonetsu
@ 2019-01-22 22:31 ` Skip Montanaro
2019-01-23 9:02 ` Gregor Zattler
1 sibling, 0 replies; 4+ messages in thread
From: Skip Montanaro @ 2019-01-22 22:31 UTC (permalink / raw)
To: jonetsu; +Cc: Help GNU Emacs
> On Linux systems, is it possible to save a macro quickly defined using
> F3 and F4 and have it recalled at a later time and run by pressing
> F4 ?
Been awhile since I wanted to save (or even name) a keyboard macro, but try
C-x C-k n
to give it a name, or
C-x C-k b
to bind it to a key sequence. Once named, you can save its definition
across sessions with
M-x insert-kbd-macro RET
to insert it in the current buffer (typically one visiting ~/.emacs).
Not sure about the F3/F4 business. Those two keys have nothing to do
with macros in my world. I still use C-x ( and C-X ) (old habits die
hard). I presume somewhere in your setup you bound F3 and F4 to
commands which start and end macro definitions. At any rate, you can
read all about messing with macros here:
http://www.gnu.org/software/emacs/manual/html_node/emacs/Keyboard-Macros.html#Keyboard-Macros
Skip
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Saving macros defined on-the-fly (F3, F4)
2019-01-22 21:27 Saving macros defined on-the-fly (F3, F4) jonetsu
2019-01-22 22:31 ` Skip Montanaro
@ 2019-01-23 9:02 ` Gregor Zattler
1 sibling, 0 replies; 4+ messages in thread
From: Gregor Zattler @ 2019-01-23 9:02 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
* jonetsu <jonetsu@teksavvy.com> [2019-01-22; 16:27]:
> On Linux systems, is it possible to save a macro quickly defined using
> F3 and F4 and have it recalled at a later time and run by pressing
> F4 ?
It's possible to name, save and later load macros. See:
(info "(Emacs)Save Keyboard Macro")
[position the cursor after the last ")" and press C-x C-e]
Ciao; Gregor
--
-... --- .-. . -.. ..--.. ...-.-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Saving macros defined on-the-fly (F3, F4)
@ 2019-01-27 7:39 Van L
0 siblings, 0 replies; 4+ messages in thread
From: Van L @ 2019-01-27 7:39 UTC (permalink / raw)
To: Help Gnu Emacs mailing list
> [snipped] to save a macro quickly defined using F3 and F4
> and have it recalled at a later time and run by pressing F4 ?
(info "(Emacs)Save Keyboard Macro”) says
— quote
To avoid problems caused by overriding existing bindings, the key
sequences ‘C-x C-k 0’ through ‘C-x C-k 9’ and ‘C-x C-k A’ through ‘C-x
C-k Z’ are reserved for your own keyboard macro bindings.
— quote ends
Before learning this, I had been binding macro to undefined keys.
Typically, prefering the hyper and, secondly, the super modifier.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-01-27 7:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-22 21:27 Saving macros defined on-the-fly (F3, F4) jonetsu
2019-01-22 22:31 ` Skip Montanaro
2019-01-23 9:02 ` Gregor Zattler
-- strict thread matches above, loose matches on Subject: below --
2019-01-27 7:39 Van L
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).