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 optionalNUM
as a numeric prefix argument, operate onNUM
words forward, defaulting to 1. IfNUM
is negative, do so backward. WhenNUM
is a negative prefix without a number, it is interpreted -1. -
altcaps-region
:: Convert region words betweenBEG
andEND
to alternating case.BEG
andEND
are buffer positions. When called interactively, these are automatically determined as active region’s boundaries, else the space betweenmark
andpoint
. -
altcaps-dwim
:: Convert to alternating letter casing Do-What-I-Mean style. With an active region, callaltcaps-region
. Else invokealtcaps-word
with 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.