In Clojure We Trust

A piece of intertube about the Clojure programming language, algorithms and Emacs.

Earmuffs and Variables

According to the Clojure coding standards for libraries, variables names should be written with *earmuffs* only when they are intended to be rebind.

Here and there I forget this rule and use earmuffs most of the time, so I decided to create an Emacs Lisp function to add/remove earmuffs to variable:

Add it to your .emacs file and then place your cursor on a variable and call it with
M-x earmuffy
to add earmuffs, or type
C-u M-x earmuffy
to remove them.


Thanks for providing a better implementation.

I'm experimenting with Emacs Lisp time to time but didn't read so much documentation about it yet so it's welcome to see improvement to my experiments.
I bit the bullet and implemented this:
Wouldn't it be nicer to have toggle-earmuffs, which detects what you currently have and toggle it?