Textmate — Emacs Style Tabs

The one thing that I missed most in all the text editors (on any OS) was the lack of Emacs style tabbing. That is, if you are in the middle of a line and hit tab it doesn’t actually insert a tab, it moves the line to the current tab-indent level.

This is very useful when you are coding. Problem is, no one seems to support it except emacs. Well, today I discovered (via a different conversation) that it is possible in Textmate (which happens to be my editor of choice right now).

  • Start a new macro (apple+option+m)
  • press: apple+option+[
  • Stop the Macro (apple+option+m)
  • Save the macro (apple+ctrl+m)
  • Assign Activation to “Key Equivalent” and click in the box and hit the Tab key.

You can define scopes in the scope selector if you wish. Ultimately I will set it up for everything but text, .txt, (which is the only place i want tabs to act normally)