I use emacs on several machines between work and home, and I'm naturally interested in remapping that Caps_Lock key to save my finger from agony. On some platforms it's a bit more difficult to do than one would like, the interface to the X server is far from being user-friendly.
On the other hand, I managed to set up a simple system to share my emacs configuration across machines. Since the remapping of the key is mainly useful inside emacs, is there a way to remap CapsLock to Control (and vice-versa) inside emacs only?
If it makes any difference, I use emacs 24.1.