Textmate 2 Tips

  • Archive
  • RSS
  • Ask me anything
  • Submit

Create a .tm_properties file to set preferences

Here are a few handy rules you can put in your .tm_properties file:

TM_GIT         = "/usr/local/bin/git"
excludeFiles   = "*.{so,pyc,o,scssc}"
excludeDirectories = "build,dist,tmp,log"

# show the path to the current tab's file in the window title 
# (replace the 2 instances of 'username' in the string below 
# with your mac username).
windowTitle    = "$TM_DISPLAYNAME${TM_DIRECTORY/\A(?:\/Users\/username\w+\/?(.*)|(.+))\z/${2:? – ${2/\A\/Users\/username/~/}:${1/\A(?=.)/ – /}}/}"
fontName = "Monaco" fontSize = 13 tabSize = 2 softTabs = true wrapColumn = 80 | "Use Window Frame" # choose one sofWrap = false showInvisibles = true # special per-filetype rules can be specified like so: [ *.{txt,md,mdown,markdown} ] spellChecking = true tabSize = 4

With thanks to fonnesbeck and JEG2 who were the only hits when I Googled for “.tm_properties”.

    • #preferences
  • 5 months ago
  • 4
  • Permalink
  • Share
    Tweet

4 Notes/ Hide

  1. sitdh liked this
  2. danielpietzsch liked this
  3. snc liked this
  4. molmol liked this
  5. tm2tips posted this
← Previous • Next →

Logo

Textmate 2: The missing manual. Help us out by submitting any tips or tricks you come across!

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Submit
  • Mobile

Brought to you by Ned Schwarz and Kevin Finlayson. Effector Theme by Carlo Franco.

Powered by Tumblr