Trying to force soft tabs and Unix newlines.

This commit is contained in:
Nick Winter 2014-01-04 16:41:25 -08:00
parent 7d3a0bd0d4
commit 1d223f790b

View file

@ -53,6 +53,8 @@ module.exports = class SpellView extends View
@aceSession.setMode 'ace/mode/javascript'
@aceSession.setWrapLimitRange null
@aceSession.setUseWrapMode true
@aceSession.setNewLineMode "unix"
@aceSession.setUseSoftTabs true
@ace.setTheme 'ace/theme/textmate'
@ace.setDisplayIndentGuides false
@ace.setShowPrintMargin false
@ -79,7 +81,7 @@ module.exports = class SpellView extends View
name: 'end-all-scripts'
bindKey: {win: 'Escape', mac: 'Escape'}
exec: -> Backbone.Mediator.publish 'level:escape-pressed'
# TODO: These don't work on, for example, Danish keyboards. Figure out a more universal solution.
# @ace.commands.addCommand
# name: 'toggle-grid'