5/9/2023 0 Comments Emacs macrosLike your windows split a certain way, with certain buffers in certain places? Why not record a macro to do it for you. That, and the siren song of elisp: it calls out to all of us, but you need not heed its call if you just want to do simple automation!Įmacs’s keyboard macros can do pretty much everything you can do, except make human decisions about what to do next – but even here Emacs’s macro system has a few tricks up its sleeve.īecause Emacs is able to record and play back nearly anything in a keyboard macro, you can leverage that to do things you wouldn’t normally think a keyboard macro should do, like: Modifying your window layout And the reason for this knowledge gap – even in people possessing much Emacs-fu – is that it’s hiding its capabilities in plain sight. Keyboard macros are misunderstood, and they can do an awful lot more than most people think they can do. In Emacs they are very powerful, and as I’ll show you in a moment, more than capable of great feats of automation. That’s where keyboard macros enter the frame. It’d be nice if you didn’t have to do that for simpler tasks. But that also ratchets up the difficulty if you have to pick up a programming language – possibly your first ever – to get simple things done. It has a wide audience, and that’s a really good thing, too. ![]() Not everyone who uses Emacs is a programmer. That’s especially true if you just want to customize or automate simple tasks. ![]() You may not have the time or the inclination. ![]() But, but, maybe you don’t know it - it’s yet another thing to learn. What would Emacs be without Emacs Lisp? Elisp is there to help you with the bugbears that bedevil your daily life.Īnd I think that’s great! Knowing elisp greatly expands your capabilities in Emacs.
0 Comments
Leave a Reply. |