Skip to content

Instantly share code, notes, and snippets.

@piascikj
Created January 27, 2017 14:45
Show Gist options
  • Save piascikj/b151e902af5c64da935cc412023d5371 to your computer and use it in GitHub Desktop.
Save piascikj/b151e902af5c64da935cc412023d5371 to your computer and use it in GitHub Desktop.
~/.atom/init.coffee to close notifications after 2 seconds
# 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.notifications.onDidAddNotification (notification) ->
setTimeout () ->
notification.dismiss()
, 2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment