Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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 log to the console when each text editor is saved.
- #
- # atom.workspace.observeTextEditors (editor) ->
- # editor.onDidSave ->
- # console.log "Saved! #{editor.getPath()}"
- atom.workspace.observeTextEditors (editor) ->
- if editor.getLineCount() > 100
- editor.foldAllAtIndentLevel 1
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement