Emacs: Rebinding Caps Lock to Ctrl

I was reading this piece, The Beginners Guide to Emacs, which suggested making the Caps Lock Key into CTRL. I’ve been using emacs for years, and it never occurred to me to make this change. Lovely! Since it isn’t in the instructions, I’d thought I’d make a note here in case it comes up in the future. This version simply makes CapsLk into Ctrl.

$ sudo emacs /etc/default/keyboard

Then add: 


$ sudo dpkg-reconfigure keyboard-configuration
$ shutdown -r now