Merge pull request #436 from tcl16/master
add language scopes to atom language config gets
This commit is contained in:
commit
b33f9b1745
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue