News for hackers. Stuff that matters.
Re:Learn Emacs: Keyboard Macros by yuan on Thursday November 10, 2011 @01:59PM (#3221302)
Or just learn a little bit of Elisp, and do this:

    M-: (loop for i from ?a 
              for j below 12 
              do (insert (format "#define %c %d\n" i j)))
Re:Learn Emacs: Keyboard Macros by jlarocco on Thursday November 10, 2011 @02:35PM (#3221472)
Yeah, I considered that, but the situation comes up so infrequently I'd never remember the syntax. I use Python everyday anyway, so it almost comes naturally.