Skip to content

Instantly share code, notes, and snippets.

@charlesdemers
Created December 16, 2011 18:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlesdemers/1487350 to your computer and use it in GitHub Desktop.
Save charlesdemers/1487350 to your computer and use it in GitHub Desktop.
My TextMate2 config file
# Put this file in your user folder
# You can also override it per project by creating another .tm_properties
# in your project’s root
TM_GIT = "/usr/bin/git"
excludeFiles = "*.{so,pyc,o,scssc}"
excludeInFileChooser = "{build,dist,tmp,log,node_modules}"
excludeInBrowser = "{build,dist,tmp,log,node_modules}"
excludeInFolderSearch = "{build,dist,tmp,log,node_modules}"
fontName = "Monaco"
fontSize = 12
tabSize = 2
softTabs = true
showInvisibles = true
windowTitle = "$TM_DISPLAYNAME${TM_DIRECTORY/\A(?:\/Users\/cdemers\w+\/?(.*)|(.+))\z/${2:? – ${2/\A\/Users\/cdemers/~/}:${1/\A(?=.)/ – /}}/}"
[ *.{txt,md,mdown,markdown} ]
spellChecking = true
tabSize = 4
softTabs = false
softWrap = true
[ "{CHANGELOG,.rvmrc,Procfile}" ]
fileType = "text.plain"
[ *.log ]
fileType = "text.plain"
@tispratik
Copy link

Thanks for sharing. excludeDirectories = "tmp,log" dosent seem to work for me, do you know if something changed? My textmate version is Version 2.0 (8956).

@tispratik
Copy link

The following worked for me.
excludeInFileChooser = "{log,tmp}"
excludeInBrowser = "{log,tmp}"
excludeInFolderSearch = "{log,tmp}"

@tispratik
Copy link

excludeDirectories = "{log,tmp}" worked too.

@charlesdemers
Copy link
Author

@tispratik Sorry for the late response, I was off the grid for the holidays. You’re right about the excludeDirectories, I didn’t test it before publishing the gist, it’s corrected now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment