Well, some time ago I decided to use smart-tabs as my solution for the tabs vs spaces holy war. And more recently I decided to override the capslock in my macbook because, well, who uses caps-lock anymore? so I said: why not to override caps-lock to a fixed soft-tab (2 spaces), after some hours googling how to make something like this to work I came up with a hacky way to make it work with sublime text, I will share the links and steps if you want to get the same functionality
- First you need to disable the caps-lock key as showed here: (http://stackoverflow.com/a/8437594)
- In that same text they mention to install PCKeyboardHack, install it too, also we will need a complementary app named KeyRemap4MacBook they are from the same publisher
- Next, with PCKeyboardHack you will tick the Change Caps Lock and insert the 110 keycode ( PC Application Key