{"action":"created","comment":{"url":"https://api.github.com/repos/atom/docs/pulls/comments/31382093","id":31382093,"diff_hunk":"@@ -0,0 +1,25 @@\n+=== The Init File\n+\n+When Atom finishes loading, it will evaluate `init.coffee` in your `~/.atom` directory, giving you a chance to run arbitrary personal CoffeeScript code to make customizations. You have full access to Atom's API from code in this file. If customizations become extensive, consider creating a package, which we will cover in <<_package_word_count>>.","path":"book/03-hacking-atom/sections/02-init-file.asc","position":3,"original_position":3,"commit_id":"c942d2c75cc800ffe31c761c59a690a6abcc6342","original_commit_id":"c942d2c75cc800ffe31c761c59a690a6abcc6342","user":{"login":"50Wliu","id":2766036,"avatar_url":"https://avatars.githubusercontent.com/u/2766036?v=3","gravatar_id":"","url":"https://api.github.com/users/50Wliu","html_url":"https://github.com/50Wliu","followers_url":"https://api.github.com/users/50Wliu/followers","following_url":"https://api.github.com/users/50Wliu/following{/other_user}","gists_url":"https://api.github.com/users/50Wliu/gists{/gist_id}","starred_url":"https://api.github.com/users/50Wliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/50Wliu/subscriptions","organizations_url":"https://api.github.com/users/50Wliu/orgs","repos_url":"https://api.github.com/users/50Wliu/repos","events_url":"https://api.github.com/users/50Wliu/events{/privacy}","received_events_url":"https://api.github.com/users/50Wliu/received_events","type":"User","site_admin":false},"body":"Is the \"personal\" in `arbitrary personal CoffeeScript code` needed here (or alternatively, \"arbitrary\")\r\n\r\nAnd how about `Code in this file has full access to https://atom.io/docs/api/latest/Atom[Atom's API].`","created_at":"2015-05-30T16:18:08Z","updated_at":"2015-05-30T16:18:08Z","html_url":"https://github.com/atom/docs/pull/65#discussion_r31382093","pull_request_url":"https://api.github.com/repos/atom/docs/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/atom/docs/pulls/comments/31382093"},"html":{"href":"https://github.com/atom/docs/pull/65#discussion_r31382093"},"pull_request":{"href":"https://api.github.com/repos/atom/docs/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/atom/docs/pulls/65","id":36566640,"html_url":"https://github.com/atom/docs/pull/65","diff_url":"https://github.com/atom/docs/pull/65.diff","patch_url":"https://github.com/atom/docs/pull/65.patch","issue_url":"https://api.github.com/repos/atom/docs/issues/65","number":65,"state":"open","locked":false,"title":"Bring back init.coffee docs","user":{"login":"izuzak","id":38924,"avatar_url":"https://avatars.githubusercontent.com/u/38924?v=3","gravatar_id":"","url":"https://api.github.com/users/izuzak","html_url":"https://github.com/izuzak","followers_url":"https://api.github.com/users/izuzak/followers","following_url":"https://api.github.com/users/izuzak/following{/other_user}","gists_url":"https://api.github.com/users/izuzak/gists{/gist_id}","starred_url":"https://api.github.com/users/izuzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izuzak/subscriptions","organizations_url":"https://api.github.com/users/izuzak/orgs","repos_url":"https://api.github.com/users/izuzak/repos","events_url":"https://api.github.com/users/izuzak/events{/privacy}","received_events_url":"https://api.github.com/users/izuzak/received_events","type":"User","site_admin":true},"body":"This resurrects the docs about the `init.coffee` file, which were extracted from the \"Basic Customization\" section into its own (unfinished) section in first version of the Flight Manual. I think we should have those docs in the Manual since the `init.coffee` file is a great way to add commands without creating packages.\r\n\r\nhttps://github.com/atom/docs/compare/0d64b29...db915f5 contains most of the changes, while c942d2c fixes a few broken links and some other minor changes.\r\n\r\nI'm calling the section \"The Init File\", which I don't dislike, but wondering if anyone has other suggestions?\r\n\r\ncc @lee-dohm @50Wliu who :heart: docs.","created_at":"2015-05-30T14:50:20Z","updated_at":"2015-05-30T16:18:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1547c7f73dd22a857184255cf186894b001f7187","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atom/docs/pulls/65/commits","review_comments_url":"https://api.github.com/repos/atom/docs/pulls/65/comments","review_comment_url":"https://api.github.com/repos/atom/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom/docs/issues/65/comments","statuses_url":"https://api.github.com/repos/atom/docs/statuses/c942d2c75cc800ffe31c761c59a690a6abcc6342","head":{"label":"atom:iz-init-coffee-docs","ref":"iz-init-coffee-docs","sha":"c942d2c75cc800ffe31c761c59a690a6abcc6342","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":25003070,"name":"docs","full_name":"atom/docs","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/docs","description":"Documentation for Atom, built by Atlas, hosted on atom.io","fork":false,"url":"https://api.github.com/repos/atom/docs","forks_url":"https://api.github.com/repos/atom/docs/forks","keys_url":"https://api.github.com/repos/atom/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/docs/teams","hooks_url":"https://api.github.com/repos/atom/docs/hooks","issue_events_url":"https://api.github.com/repos/atom/docs/issues/events{/number}","events_url":"https://api.github.com/repos/atom/docs/events","assignees_url":"https://api.github.com/repos/atom/docs/assignees{/user}","branches_url":"https://api.github.com/repos/atom/docs/branches{/branch}","tags_url":"https://api.github.com/repos/atom/docs/tags","blobs_url":"https://api.github.com/repos/atom/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/docs/languages","stargazers_url":"https://api.github.com/repos/atom/docs/stargazers","contributors_url":"https://api.github.com/repos/atom/docs/contributors","subscribers_url":"https://api.github.com/repos/atom/docs/subscribers","subscription_url":"https://api.github.com/repos/atom/docs/subscription","commits_url":"https://api.github.com/repos/atom/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/docs/contents/{+path}","compare_url":"https://api.github.com/repos/atom/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/docs/merges","archive_url":"https://api.github.com/repos/atom/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/docs/downloads","issues_url":"https://api.github.com/repos/atom/docs/issues{/number}","pulls_url":"https://api.github.com/repos/atom/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/docs/labels{/name}","releases_url":"https://api.github.com/repos/atom/docs/releases{/id}","created_at":"2014-10-09T18:34:02Z","updated_at":"2015-05-28T13:26:04Z","pushed_at":"2015-05-30T14:50:20Z","git_url":"git://github.com/atom/docs.git","ssh_url":"git@github.com:atom/docs.git","clone_url":"https://github.com/atom/docs.git","svn_url":"https://github.com/atom/docs","homepage":"https://atom.io/docs/latest","size":30029,"stargazers_count":48,"watchers_count":48,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":27,"forks":22,"open_issues":27,"watchers":48,"default_branch":"master"}},"base":{"label":"atom:master","ref":"master","sha":"8fbef87910a8fdd5d54fd4de95bbdf575ceb98a7","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":25003070,"name":"docs","full_name":"atom/docs","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/docs","description":"Documentation for Atom, built by Atlas, hosted on atom.io","fork":false,"url":"https://api.github.com/repos/atom/docs","forks_url":"https://api.github.com/repos/atom/docs/forks","keys_url":"https://api.github.com/repos/atom/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/docs/teams","hooks_url":"https://api.github.com/repos/atom/docs/hooks","issue_events_url":"https://api.github.com/repos/atom/docs/issues/events{/number}","events_url":"https://api.github.com/repos/atom/docs/events","assignees_url":"https://api.github.com/repos/atom/docs/assignees{/user}","branches_url":"https://api.github.com/repos/atom/docs/branches{/branch}","tags_url":"https://api.github.com/repos/atom/docs/tags","blobs_url":"https://api.github.com/repos/atom/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/docs/languages","stargazers_url":"https://api.github.com/repos/atom/docs/stargazers","contributors_url":"https://api.github.com/repos/atom/docs/contributors","subscribers_url":"https://api.github.com/repos/atom/docs/subscribers","subscription_url":"https://api.github.com/repos/atom/docs/subscription","commits_url":"https://api.github.com/repos/atom/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/docs/contents/{+path}","compare_url":"https://api.github.com/repos/atom/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/docs/merges","archive_url":"https://api.github.com/repos/atom/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/docs/downloads","issues_url":"https://api.github.com/repos/atom/docs/issues{/number}","pulls_url":"https://api.github.com/repos/atom/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/docs/labels{/name}","releases_url":"https://api.github.com/repos/atom/docs/releases{/id}","created_at":"2014-10-09T18:34:02Z","updated_at":"2015-05-28T13:26:04Z","pushed_at":"2015-05-30T14:50:20Z","git_url":"git://github.com/atom/docs.git","ssh_url":"git@github.com:atom/docs.git","clone_url":"https://github.com/atom/docs.git","svn_url":"https://github.com/atom/docs","homepage":"https://atom.io/docs/latest","size":30029,"stargazers_count":48,"watchers_count":48,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":27,"forks":22,"open_issues":27,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/docs/pulls/65"},"html":{"href":"https://github.com/atom/docs/pull/65"},"issue":{"href":"https://api.github.com/repos/atom/docs/issues/65"},"comments":{"href":"https://api.github.com/repos/atom/docs/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/docs/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom/docs/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/atom/docs/statuses/c942d2c75cc800ffe31c761c59a690a6abcc6342"}}}}