Skip to content

Instantly share code, notes, and snippets.

View robinweser's full-sized avatar

Robin Weser robinweser

View GitHub Profile
@robinweser
robinweser / init.coffee
Created January 27, 2017 15:01 — forked from piascikj/init.coffee
~/.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 ->
(function(){Array.prototype.slice.call(document.querySelectorAll('[data-reactid]')).forEach(function(ele){ele.style.background = 'rgba(0, 129, 255, 0.05)'})})();