-
-
Save robinweser/ca1d654b26a6d4739a1db1b46cb269a8 to your computer and use it in GitHub Desktop.
~/.atom/init.coffee to close notifications after 2 seconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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