Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # Your init script
  2. #
  3. # Atom will evaluate this file each time a new window is opened. It is run
  4. # after packages are loaded/activated and after the previous editor state
  5. # has been restored.
  6. #
  7. # An example hack to log to the console when each text editor is saved.
  8. #
  9. # atom.workspace.observeTextEditors (editor) ->
  10. # editor.onDidSave ->
  11. # console.log "Saved! #{editor.getPath()}"
  12. atom.workspace.observeTextEditors (editor) ->
  13. if editor.getLineCount() > 100
  14. editor.foldAllAtIndentLevel 1
  15. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement