Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
yuan
14y ago
0 comments
Save
Share
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)))
0 comments
1 comments · 1 top-level
top
newest
oldest
jlarocco
14y ago
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.
j
/
k
navigate · click thread line to collapse