Uncategorized 03 Mar 2002 05:38 am
Macros are cool. Macros are cool.
When you are working on a system and there are 16-19 places where an attribute needs to be edited when you change the way it works, you know that…
it’s time to refactor about 8 months ago, but …
you weren’t working on the project 8 months ago…
someone else was…
and the business folks had given them a deadline from dreamland…
but now you do have to work on it, and the tedium is driving you nuts!
Behold – CTRL-X-( “then type your exact edit keystrokes” CTRL-X-). Voilá you have created an emacs macro. CTRL-X-e will have it do your bidding whenever you want. SWEEEET. For more on macros refer to the O’Reilly GNU Emacs book p 283, or go to the keyboard macro section of the gnu manual online.
back to work.