-
-
Save belgoros/8d9fb512d5eaa0e1838f20fcb9599559 to your computer and use it in GitHub Desktop.
TextMate 2 Settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spellChecking = true | |
spellingLanguage = 'en' | |
softTabs = true | |
softWrap = false | |
invisiblesMap = "~ \t┊" | |
TM_STRIP_WHITESPACE_ON_SAVE = true | |
TM_GIT = "/usr/local/bin/git" | |
TM_RUBY = "/usr/local/var/rbenv/shims/ruby" | |
# File showing/hiding | |
# Browser -> The TextMate project folder UI column | |
# FileChooser -> The Go To File ⌘T panel | |
# FolderSearch -> The Find ⌘F dialog | |
myExtraExcludes = "vendor,tmp,venv,node_modules,assets/fonts,bourbon" | |
myExtraSearchExcludes = "log,bin,script,app/assets/javascripts/lib,app/assets/fonts,assets/fonts,assets/css,fixtures" | |
myExtraIncludes = ".env,.env.test,.env.export,.htaccess,.gitignore,.slugignore,.ruby-version" | |
# Excluding files | |
excludeInFileChooser = "{$excludeInFileChooser,$myExtraExcludes}" | |
excludeInFolderSearch = "{$excludeInFolderSearch,$myExtraExcludes,$myExtraSearchExcludes}" | |
excludeInBrowser = "{$excludeInBrowser,$HOME,tmp}" | |
# Including files | |
includeInBrowser = "{$includeInBrowser,$myExtraIncludes}" | |
includeInFileChooser = "{$includeInFileChooser,$myExtraIncludes}" | |
includeInFolderSearch = "{$includeInFolderSearch,$myExtraIncludes}" | |
# Specific file-type rules | |
# RULES WILL NOT WORK IF THERE ARE NO SPACES AROUND THE BRACES | |
# YOU CAN NOT USE DOTS IN CURLIES "*.{html.erb}" | |
# YOU CAN NOT DO THIS [ source, source.php ] | |
# EVERY RULE MUST BE SEPERATE | |
[ "*.{md,mdown,markdown}" ] | |
softWrap = true | |
fileType = "text.html.markdown" | |
[ "*.{erb}" ] | |
fileType = "text.html.erb" | |
[ source ] | |
softWrap = false | |
softTabs = true | |
tabSize = 2 | |
[ source.ruby ] | |
softWrap = false | |
softTabs = true | |
tabSize = 2 | |
[ source.php ] | |
softWrap = false | |
softTabs = true | |
tabSize = 2 | |
[ source.python ] | |
softWrap = false | |
softTabs = true | |
tabSize = 4 | |
[ source.shell ] | |
softWrap = false | |
softTabs = true | |
tabSize = 2 | |
[ text.html ] | |
softWrap = false | |
softTabs = true | |
tabSize = 2 | |
[ text.html.erb ] | |
softWrap = false | |
softTabs = true | |
tabSize = 2 | |
[ "*.{log,out}" ] | |
fileType = "text.plain" | |
softWrap = false | |
softTabs = true | |
tabSize = 2 | |
[ "{README,INSTALL,LICENSE,TODO,CONTRIBUTING,COPYING,LEGAL,NEWS}" ] | |
fileType = "text.plain" | |
[ "{.env,env-template,env-dist,.gitignore,.slugignore}" ] | |
fileType = "source.makefile" | |
[ "{Procfile,procfile,gemrc,.gemrc}" ] | |
fileType = "source.yaml" | |
[ "{aprc,.aprc}" ] | |
fileType = "source.ruby" | |
[ ".svg" ] | |
fileType = "text.xml" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment