Emacs Hack: Typing Uppercase Without CAPS LOCK

I wanted to write all my FORTH code for a project in uppercase. (Hey, it's my project, alright!?) However, using the CAPS LOCK key in Emacs is a bit annoying, because the minibuffer commands are case sensitive, meaning that you have to disable CAPS LOCK first before using any M-x command.

With the help of the friendly folks at #emacs on libera.chat, I was able to figure out this workaround: drop this code into a ".dir-locals.el" file in the directory where your source code is kept:

That assumes that you have FORTH mode installed. You can replace "forth-mode" with any other mode name.

If you hack this hack, you'll want to be careful not to set this variable globally, as then the input to the minibuffer will also be converted to uppercase, and you won't be able to enter any more M-x commands during your session.

Proxied content from gemini://gem.librehacker.com/gemlog/tech/20220816-0.gmi

Gemini request details:

Original URL
gemini://gem.librehacker.com/gemlog/tech/20220816-0.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.