From 6fb956688a5127150eeff1509effbf611e18a407 Mon Sep 17 00:00:00 2001 From: Ivan Zuzak Date: Tue, 4 Mar 2014 14:42:23 +0100 Subject: [PATCH] add short init.coffee example --- docs/customizing-atom.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/customizing-atom.md b/docs/customizing-atom.md index 73a82dc06..4186ab3b7 100644 --- a/docs/customizing-atom.md +++ b/docs/customizing-atom.md @@ -148,6 +148,14 @@ If customizations become extensive, consider [creating a package][creating-a-pac You can open this file in an editor from the _Atom > Open Your Init Script_ menu. +For example, if you have the Audio Beep configuration setting enabled, you +could add the following code to your _~/.atom/init.coffee_ file to have Atom +greet you with an audio beep every time it loads: + +```coffee +atom.beep() +``` + This file can also be named _init.js_ and contain JavaScript code. ### styles.less