Using TextMate to edit emails in Mail.app

textmate100pxThe text editor TextMate comes bundled with an “Edit in TextMate” input manager which allows you to call Textmate as an external editor in Cocoa apps.

If you select the Install “Edit in TextMate”… action located in your TextMate bundle (using the gear menu in the status bar), you will get a full explanation and a button that creates the required symbolic link for you.

Then, when you want to write a reply or compose a new message in Mail.app, just hit the keyboard shortcut and get to work:

textmateeditor

When you are done, Command-S saves your work and inserts it in the message:

mailmessage

I have also found this useful when working in other apps. For example, if you are editing a 37Signals Writeboard , Command-Shift-S offers you a quick way to save your work off as a text file on your hard drive.

UPDATE: The TextMate people picked up this post on their own blog and offer some extra nifty tips on how to get the most out of TextMate as an external editor in Mail.

[From the TextMate mailing list and Manual ]

Tags: , , , , , ,

Related posts

8 Responses to “Using TextMate to edit emails in Mail.app”

  1. Allan Moult says:

    I followed the instructions and got it installed okay. I can see the ‘edit in textmate’ menu item and nothing happens.

    Anyone got an idea about what’s not working?

  2. sjk says:

    Works for me with Safari… I’m typing this text in a TextMate window right now, in fact. I don’t use Mail on this system so I can’t check it there.

    This could certainly influence my decision to buy TM.

  3. Wlad says:

    Is there a way to do this from other editors (e.g. emacs?)

  4. sjk says:

    If you meant with other editors, TextMate is the only one I’m aware of that can be launched from most Cocoa apps for external editing. And some apps let you select from a limited choice of supported external editors.

  5. Tim says:

    Not that I know of. The people I know using emacs tend to be hooked into mutt (or other examples of that kind of thing). But I could be wrong.

  6. puts Blog.new(”nonsense”) » Blog Archive » Manning up: TextMate Meets Man Pages says:

    [...] be it for coding, blogging, editing wiki pages (and other Safari-based content), or sometimes even writing e-mail. So, if I can use TextMate to find my way around a man page, that’s an all-around [...]

  7. TextMate als Editor im Webbrowser nutzen - admartinator.de says:

    [...] in TextMate” einfügt. Damit kann man nun in Safari sowie in anderen Anwendungen, wie zum Beispiel auch in Mail, TextMate als Editor-“Ersatz” nutzen. Ein Ctrl+⌘E zum Editieren und ein ⌘S und [...]

  8. VOIP News » Blog Archive » Crux immissa - edit External says:

    [...] Hawk Wings » Blog Archive » Using TextMate to edit emails in Mail.app The text editor TextMate comes bundled with an “Edit in TextMate” input manager which allows you to call Textmate as an external editor in Cocoa apps. [...]

Leave a Reply