Skip to content

Instantly share code, notes, and snippets.

@kans
Created February 27, 2014 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kans/9244851 to your computer and use it in GitHub Desktop.
Save kans/9244851 to your computer and use it in GitHub Desktop.
Change Listener for Atom
module.exports = {
floobitsView: null,
activate: function(state) {
atom.workspaceView.eachEditorView(function(e) {
var editor = e.getEditor();
editor.on("contents-modified", function(){
process.nextTick(function(){
console.log('modified')
})
})
})
},
deactivate: function() {
},
serialize: function() {
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment