If, like me, you consider CamelCase symbol names to be the mark of the beast, Arne Babenhauserheide has you covered. He recently found himself having to convert names like CamelCase
to camel_case. He found some code on the Emacs Wiki, added some glue to make it interactive, and used a keyboard macro to convert everything.
If you follow the link to the Wiki page, you’ll discover that there’s also code to convert to
- CamelCaseSymbols
- underscored_symbols
- dashed-symbols
- colonized::symbols
The code is simple enough that you can easily add some other special format that you might need.
Again, Emacs letting you have it your way.