mirror of
https://github.com/atom/atom.git
synced 2026-01-20 20:38:09 -05:00
Our new pattern for booleans is to have ::set and ::is, and that means the property name needs to be in passive voice for ::is to make sense. This is in preparation for adding a new change observation method. * ::setSoftWrapped * ::isSoftWrapped * ::toggleSoftWrapped
15 lines
462 B
CoffeeScript
15 lines
462 B
CoffeeScript
# Your init script
|
|
#
|
|
# Atom will evaluate this file each time a new window is opened. It is run
|
|
# after packages are loaded/activated and after the previous editor state
|
|
# has been restored.
|
|
#
|
|
# An example hack to make opened Markdown files always be soft wrapped:
|
|
#
|
|
# path = require 'path'
|
|
#
|
|
# atom.workspaceView.eachEditorView (editorView) ->
|
|
# editor = editorView.getEditor()
|
|
# if path.extname(editor.getPath()) is '.md'
|
|
# editor.setSoftWrapped(true)
|