Here is a small annoyance that I have with TextMate. When I want to open a new file in TextMate when it's not running it also opens the last opened file. Now for some cases that's just nice of him to do but in most cases I end-up closing the previous file. Maybe this is a simple setup/preference issue? Any ideas?

2 Answers 2


It's not something you can set in the app preferences.

If you want to change this behavior, open Terminal.app and type

defaults write com.macromates.textmate OakDisableSessionRestore 1

This will make Textmate not remember the last session.

Change the 1 by 0 if you want the default behavior.

  • 1
    This doesn't work with Textmate 2...
    – CharlesB
    Nov 24, 2015 at 14:31

This behavior is bypassed in Textmate 2 by holding shift when opening Textmate 2.

Picture is from Preferences

From Textmate 2 Preferences Pane

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .