Emacs: my new 'altcaps' package
The altcaps package helps you apply alternating letter casing to
convey sarcasm or mockery. For example, convert this:
I respect the authorities
To this:
i ReSpEcT tHe AuThOrItIeS
The altcaps package thus makes you more effective at textual
communication. Plus, you appear sophisticated. tRuSt Me.
Use any of the following commands to achieve the desired results:
-
altcaps-word:: Convert word to alternating letter casing. With optionalNUMas a numeric prefix argument, operate onNUMwords forward, defaulting to 1. IfNUMis negative, do so backward. WhenNUMis a negative prefix without a number, it is interpreted -1. -
altcaps-region:: Convert region words betweenBEGandENDto alternating case.BEGandENDare buffer positions. When called interactively, these are automatically determined as active region’s boundaries, else the space betweenmarkandpoint. -
altcaps-dwim:: Convert to alternating letter casing Do-What-I-Mean style. With an active region, callaltcaps-region. Else invokealtcaps-wordwith optionalNUM, per that command’s functionality (read its documentation).
- Package name (GNU ELPA):
altcaps - Official manual: https://protesilaos.com/emacs/altcaps
- Git repo on SourceHut: https://git.sr.ht/~protesilaos/altcaps
- Mirrors:
- Mailing list: https://lists.sr.ht/~protesilaos/altcaps
- Backronyms: Alternating Letters Transform Casual Asides to Playful Statements. ALTCAPS Lets Trolls Convert Aphorisms to Proper Shitposts.