mirror of
https://github.com/atom/atom.git
synced 2026-02-03 11:14:59 -05:00
Set auto-indent config defaults
This commit is contained in:
@@ -158,10 +158,10 @@ class EditSession
|
||||
logScreenLines: (start, end) -> @displayBuffer.logLines(start, end)
|
||||
|
||||
shouldAutoIndent: ->
|
||||
config.get("editor.autoIndent") ? true
|
||||
config.get("editor.autoIndent")
|
||||
|
||||
shouldAutoIndentPastedText: ->
|
||||
config.get("editor.autoIndentOnPaste") ? false
|
||||
config.get("editor.autoIndentOnPaste")
|
||||
|
||||
insertText: (text, options={}) ->
|
||||
options.autoIndent ?= @shouldAutoIndent()
|
||||
|
||||
@@ -17,6 +17,8 @@ class Editor extends View
|
||||
fontSize: 20
|
||||
showInvisibles: false
|
||||
autosave: false
|
||||
autoIndent: true
|
||||
autoIndentOnPaste: false
|
||||
|
||||
@content: (params) ->
|
||||
@div class: @classes(params), tabindex: -1, =>
|
||||
|
||||
Reference in New Issue
Block a user