Add more relevant (but contrived) example in init.coffee.

Closes #4089
Esse commit está contido em:
Ben Ogle
2014-11-07 10:02:07 -08:00
commit ef129f9491
+4 -7
Ver Arquivo
@@ -4,11 +4,8 @@
# after packages are loaded/activated and after the previous editor state # after packages are loaded/activated and after the previous editor state
# has been restored. # has been restored.
# #
# An example hack to make opened Markdown files always be soft wrapped: # An example hack to log to the console when each text editor is saved.
# #
# path = require 'path' # atom.workspace.observeTextEditors (editor) ->
# # editor.onDidSave ->
# atom.workspaceView.eachEditorView (editorView) -> # console.log "Saved! #{editor.getPath()}"
# editor = editorView.getEditor()
# if path.extname(editor.getPath()) is '.md'
# editor.setSoftWrapped(true)