Merge pull request #436 from tcl16/master

add language scopes to atom language config gets
This commit is contained in:
Glavin Wiechert 2015-08-05 12:21:16 -03:00
commit b33f9b1745
6 changed files with 19 additions and 13 deletions

View File

@ -1,6 +1,7 @@
# Get Atom defaults # Get Atom defaults
tabLength = atom?.config.get('editor.tabLength') ? 4 scope = ['source.css']
softTabs = atom?.config.get('editor.softTabs') ? true tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentSize = (if softTabs then tabLength else 1)
defaultIndentChar = (if softTabs then " " else "\t") defaultIndentChar = (if softTabs then " " else "\t")
defaultIndentWithTabs = not softTabs defaultIndentWithTabs = not softTabs

View File

@ -1,6 +1,7 @@
# Get Atom defaults # Get Atom defaults
tabLength = atom?.config.get('editor.tabLength') ? 4 scope = ['text.html']
softTabs = atom?.config.get('editor.softTabs') ? true tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentSize = (if softTabs then tabLength else 1)
defaultIndentChar = (if softTabs then " " else "\t") defaultIndentChar = (if softTabs then " " else "\t")
defaultIndentWithTabs = not softTabs defaultIndentWithTabs = not softTabs

View File

@ -1,6 +1,7 @@
# Get Atom defaults # Get Atom defaults
tabLength = atom?.config.get('editor.tabLength') ? 4 scope = ['source.js']
softTabs = atom?.config.get('editor.softTabs') ? true tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentSize = (if softTabs then tabLength else 1)
defaultIndentChar = (if softTabs then " " else "\t") defaultIndentChar = (if softTabs then " " else "\t")
defaultIndentWithTabs = not softTabs defaultIndentWithTabs = not softTabs

View File

@ -1,6 +1,7 @@
# Get Atom defaults # Get Atom defaults
tabLength = atom?.config.get('editor.tabLength') ? 4 scope = ['source.python']
softTabs = atom?.config.get('editor.softTabs') ? true tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentSize = (if softTabs then tabLength else 1)
defaultIndentChar = (if softTabs then " " else "\t") defaultIndentChar = (if softTabs then " " else "\t")
defaultIndentWithTabs = not softTabs defaultIndentWithTabs = not softTabs

View File

@ -1,6 +1,7 @@
# Get Atom defaults # Get Atom defaults
tabLength = atom?.config.get('editor.tabLength') ? 4 scope = ['source.ruby']
softTabs = atom?.config.get('editor.softTabs') ? true tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentSize = (if softTabs then tabLength else 1)
defaultIndentChar = (if softTabs then " " else "\t") defaultIndentChar = (if softTabs then " " else "\t")
defaultIndentWithTabs = not softTabs defaultIndentWithTabs = not softTabs

View File

@ -1,6 +1,7 @@
# Get Atom defaults # Get Atom defaults
tabLength = atom?.config.get('editor.tabLength') ? 4 scope = ['source.sql']
softTabs = atom?.config.get('editor.softTabs') ? true tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentSize = (if softTabs then tabLength else 1)
defaultIndentChar = (if softTabs then " " else "\t") defaultIndentChar = (if softTabs then " " else "\t")
defaultIndentWithTabs = not softTabs defaultIndentWithTabs = not softTabs