Skip to content

Instantly share code, notes, and snippets.

@satya164 satya164/init.coffee
Last active Jul 11, 2016

Embed
What would you like to do?
# 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()}"
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# 'atom-workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * https://atom.io/docs/latest/using-atom-basic-customization#customizing-key-bindings
# * https://atom.io/docs/latest/behind-atom-keymaps-in-depth
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# https://atom.io/docs/latest/using-atom-basic-customization#cson
[
{
"name": "about",
"version": "1.5.2"
},
{
"name": "archive-view",
"version": "0.61.1"
},
{
"name": "atom-dark-fusion-syntax",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "atom-dark-syntax",
"version": "0.27.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.51.0",
"theme": "ui"
},
{
"name": "atom-handlebars",
"version": "1.3.0"
},
{
"name": "atom-light-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.43.0",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "0.4.6",
"theme": "syntax"
},
{
"name": "auto-detect-indentation",
"version": "1.1.0"
},
{
"name": "auto-update-packages",
"version": "1.0.1"
},
{
"name": "autoclose-html",
"version": "0.23.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.0"
},
{
"name": "autocomplete-css",
"version": "0.11.1"
},
{
"name": "autocomplete-html",
"version": "0.7.2"
},
{
"name": "autocomplete-java",
"version": "1.2.5"
},
{
"name": "autocomplete-modules",
"version": "1.5.2"
},
{
"name": "autocomplete-paths",
"version": "1.0.2"
},
{
"name": "autocomplete-plus",
"version": "2.31.0"
},
{
"name": "autocomplete-sass",
"version": "0.1.0"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autoflow",
"version": "0.27.0"
},
{
"name": "autosave",
"version": "0.23.1"
},
{
"name": "ava",
"version": "0.6.0"
},
{
"name": "background-tips",
"version": "0.26.0"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "behave-theme",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "bonsoir-syntax",
"version": "2.0.1",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.41.0"
},
{
"name": "bracket-matcher",
"version": "0.82.1"
},
{
"name": "code-peek",
"version": "1.4.6"
},
{
"name": "command-palette",
"version": "0.38.0"
},
{
"name": "deep-space-syntax",
"version": "0.4.1",
"theme": "syntax"
},
{
"name": "deprecation-cop",
"version": "0.54.1"
},
{
"name": "dev-live-reload",
"version": "0.47.0"
},
{
"name": "docblockr",
"version": "0.7.3"
},
{
"name": "double-tag",
"version": "0.2.0"
},
{
"name": "dracula-theme",
"version": "1.2.8",
"theme": "syntax"
},
{
"name": "duotone-blue-dark-syntax",
"version": "1.2.0",
"theme": "syntax"
},
{
"name": "duotone-bright-sea-syntax",
"version": "1.0.0-mod.1",
"theme": "syntax"
},
{
"name": "duotone-dark-amethyst-syntax",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "duotone-dark-sea-syntax",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "duotone-dark-space-muted-syntax",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "duotone-dark-space-syntax",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "duotone-dark-syntax",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "duotone-denim-syntax",
"version": "0.4.1",
"theme": "syntax"
},
{
"name": "duotone-light-blue-syntax",
"version": "1.0.1",
"theme": "syntax"
},
{
"name": "duotone-light-syntax",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "duotone-snow",
"version": "1.2.0",
"theme": "syntax"
},
{
"name": "duotone-stark-sea-syntax",
"version": "1.0.0-mod.1",
"theme": "syntax"
},
{
"name": "duotone-swordart-syntax",
"version": "2.2.0",
"theme": "syntax"
},
{
"name": "editorconfig",
"version": "1.4.1"
},
{
"name": "encoding-selector",
"version": "0.22.0"
},
{
"name": "exception-reporting",
"version": "0.38.1"
},
{
"name": "facebook-syntax",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "find-and-replace",
"version": "0.198.0"
},
{
"name": "firewatch-syntax",
"version": "1.0.1",
"theme": "syntax"
},
{
"name": "fuzzy-finder",
"version": "1.2.0"
},
{
"name": "git-diff",
"version": "1.0.1"
},
{
"name": "git-plus",
"version": "5.16.2"
},
{
"name": "git-status",
"version": "0.3.4"
},
{
"name": "go-to-line",
"version": "0.31.0"
},
{
"name": "grammar-selector",
"version": "0.48.1"
},
{
"name": "highlight-line",
"version": "0.11.1"
},
{
"name": "highlight-selected",
"version": "0.11.2"
},
{
"name": "hyperclick",
"version": "0.0.0"
},
{
"name": "image-view",
"version": "0.58.0"
},
{
"name": "incompatible-packages",
"version": "0.26.1"
},
{
"name": "java-importer",
"version": "1.4.1"
},
{
"name": "keybinding-resolver",
"version": "0.35.0"
},
{
"name": "language-SCSS",
"version": "0.4.0"
},
{
"name": "language-babel",
"version": "2.31.0"
},
{
"name": "language-c",
"version": "0.52.1"
},
{
"name": "language-clojure",
"version": "0.21.0"
},
{
"name": "language-coffee-script",
"version": "0.47.0"
},
{
"name": "language-csharp",
"version": "0.12.1"
},
{
"name": "language-css",
"version": "0.36.2"
},
{
"name": "language-elm",
"version": "1.5.0"
},
{
"name": "language-gfm",
"version": "0.86.0"
},
{
"name": "language-git",
"version": "0.13.0"
},
{
"name": "language-go",
"version": "0.42.0"
},
{
"name": "language-groovy",
"version": "0.6.0"
},
{
"name": "language-html",
"version": "0.44.1"
},
{
"name": "language-hyperlink",
"version": "0.16.0"
},
{
"name": "language-java",
"version": "0.22.0"
},
{
"name": "language-javascript",
"version": "0.119.0"
},
{
"name": "language-json",
"version": "0.18.0"
},
{
"name": "language-less",
"version": "0.29.3"
},
{
"name": "language-make",
"version": "0.22.2"
},
{
"name": "language-mustache",
"version": "0.13.0"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.35.0"
},
{
"name": "language-php",
"version": "0.37.0"
},
{
"name": "language-proguard",
"version": "0.1.0"
},
{
"name": "language-property-list",
"version": "0.8.0"
},
{
"name": "language-python",
"version": "0.45.0"
},
{
"name": "language-ruby",
"version": "0.68.5"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.0"
},
{
"name": "language-sass",
"version": "0.52.0"
},
{
"name": "language-shellscript",
"version": "0.22.3"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.21.1"
},
{
"name": "language-text",
"version": "0.7.1"
},
{
"name": "language-todo",
"version": "0.28.0"
},
{
"name": "language-toml",
"version": "0.18.0"
},
{
"name": "language-xml",
"version": "0.34.8"
},
{
"name": "language-yaml",
"version": "0.26.0"
},
{
"name": "line-ending-selector",
"version": "0.5.0"
},
{
"name": "link",
"version": "0.31.1"
},
{
"name": "linter-alex",
"version": "3.2.0"
},
{
"name": "linter-elm-make",
"version": "0.12.1"
},
{
"name": "linter-eslint",
"version": "7.2.4"
},
{
"name": "linter-jsonlint",
"version": "1.3.0"
},
{
"name": "linter-write-good",
"version": "0.6.1"
},
{
"name": "markdown-preview",
"version": "0.158.0"
},
{
"name": "merge-conflicts",
"version": "1.4.4"
},
{
"name": "notifications",
"version": "0.64.1"
},
{
"name": "nuclide",
"version": "0.150.0"
},
{
"name": "nuclide-adb-logcat",
"version": "0.0.0"
},
{
"name": "nuclide-bookshelf",
"version": "0.0.0"
},
{
"name": "nuclide-buck",
"version": "0.0.0"
},
{
"name": "nuclide-build",
"version": "0.0.0"
},
{
"name": "nuclide-busy-signal",
"version": "0.0.0"
},
{
"name": "nuclide-code-format",
"version": "0.0.0"
},
{
"name": "nuclide-code-highlight",
"version": "0.0.0"
},
{
"name": "nuclide-console",
"version": "0.0.0"
},
{
"name": "nuclide-current-working-directory",
"version": "0.0.0"
},
{
"name": "nuclide-datatip",
"version": "0.0.0"
},
{
"name": "nuclide-debugger-node",
"version": "0.0.0"
},
{
"name": "nuclide-definition-hyperclick",
"version": "0.0.0"
},
{
"name": "nuclide-definition-preview",
"version": "0.0.0"
},
{
"name": "nuclide-definition-service",
"version": "0.0.0"
},
{
"name": "nuclide-diagnostics-datatip-provider",
"version": "0.0.0"
},
{
"name": "nuclide-diagnostics-store",
"version": "0.0.0"
},
{
"name": "nuclide-diagnostics-ui",
"version": "0.0.0"
},
{
"name": "nuclide-distraction-free-mode",
"version": "0.0.0"
},
{
"name": "nuclide-file-watcher",
"version": "0.0.0"
},
{
"name": "nuclide-find-references",
"version": "0.0.0"
},
{
"name": "nuclide-flow",
"version": "0.0.0"
},
{
"name": "nuclide-format-js",
"version": "0.0.0"
},
{
"name": "nuclide-fuzzy-filename-provider",
"version": "0.0.0"
},
{
"name": "nuclide-gadgets",
"version": "0.0.0"
},
{
"name": "nuclide-health",
"version": "0.0.0"
},
{
"name": "nuclide-hg-conflict-resolver",
"version": "0.0.0"
},
{
"name": "nuclide-ios-simulator-logs",
"version": "0.0.0"
},
{
"name": "nuclide-json",
"version": "0.0.0"
},
{
"name": "nuclide-move-item-to-available-pane",
"version": "0.0.0"
},
{
"name": "nuclide-notifications",
"version": "0.0.0"
},
{
"name": "nuclide-objc",
"version": "0.0.0"
},
{
"name": "nuclide-python",
"version": "0.0.0"
},
{
"name": "nuclide-react-native",
"version": "0.0.0"
},
{
"name": "nuclide-react-native-inspector",
"version": "0.0.0"
},
{
"name": "nuclide-settings",
"version": "0.0.0"
},
{
"name": "nuclide-type-coverage",
"version": "0.0.0"
},
{
"name": "nuclide-type-hint",
"version": "0.0.0"
},
{
"name": "nuclide-ui",
"version": "0.0.0"
},
{
"name": "nuclide-url-hyperclick",
"version": "0.0.0"
},
{
"name": "one-dark-dim-syntax",
"version": "0.1.0",
"theme": "syntax"
},
{
"name": "one-dark-syntax",
"version": "1.2.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.3.2",
"theme": "ui"
},
{
"name": "one-dark-vivid-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "one-light-syntax",
"version": "1.2.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.3.2",
"theme": "ui"
},
{
"name": "open-in-browser",
"version": "0.4.7"
},
{
"name": "open-recent",
"version": "5.0.0"
},
{
"name": "open-terminal-here",
"version": "2.1.4"
},
{
"name": "pigments",
"version": "0.31.1"
},
{
"name": "react-snippets",
"version": "0.4.2"
},
{
"name": "redux-devtools",
"version": "0.1.1"
},
{
"name": "redux-snippets",
"version": "0.2.2"
},
{
"name": "seti-icons",
"version": "1.3.2"
},
{
"name": "settings-view",
"version": "0.238.0"
},
{
"name": "snippets",
"version": "1.0.2"
},
{
"name": "solarized-dark-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "sort-lines",
"version": "0.14.0"
},
{
"name": "spacegray-dark-ui",
"version": "0.12.0",
"theme": "ui"
},
{
"name": "spell-check",
"version": "0.67.1"
},
{
"name": "status-bar",
"version": "1.3.1"
},
{
"name": "symbols-view",
"version": "0.113.0"
},
{
"name": "sync-settings",
"version": "0.7.2"
},
{
"name": "synced-sidebar",
"version": "0.4.3"
},
{
"name": "tabs",
"version": "0.98.0"
},
{
"name": "tabs-to-spaces",
"version": "1.0.2"
},
{
"name": "timecop",
"version": "0.33.1"
},
{
"name": "todo-show",
"version": "1.6.0"
},
{
"name": "tool-bar",
"version": "1.0.0"
},
{
"name": "tree-view",
"version": "0.208.0"
},
{
"name": "tree-view-git-branch",
"version": "0.1.2"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "whitespace",
"version": "0.32.2"
}
]
{
"atom-beautify": {
"_analyticsUserId": "2364720a-8c63-48cf-ad36-e9b9766ee5d0"
},
"atom-ternjs": {
"displayAboveSnippets": true,
"excludeLowerPriorityProviders": true,
"lint": false,
"origins": false,
"urls": false,
"useSnippetsAndFunction": true
},
"autocomplete-plus": {
"backspaceTriggersAutocomplete": true,
"defaultProvider": "Fuzzy",
"minimumWordLength": 1
},
"core": {
"customFileTypes": {
"source.ini": [
".buckconfig",
".flowconfig"
],
"source.json": [
".arcconfig",
"BUCK.autodeps"
],
"source.python": [
"BUCK"
]
},
"disabledPackages": [
"wrap-guide",
"welcome",
"styleguide",
"package-generator",
"open-on-github",
"metrics",
"nuclide-objc",
"linter"
],
"themes": [
"one-dark-ui",
"behave-theme"
]
},
"editor": {
"backUpBeforeSaving": true,
"fontFamily": "Fira Code",
"fontSize": 12,
"showIndentGuide": true,
"softWrap": true,
"tabLength": 4
},
"exception-reporting": {
"userId": "37975771-87d9-cd4c-2407-9d7de39f73a5"
},
"file-icons": {
"onChanges": true
},
"file-watcher": {
"promptWhenFileHasChangedOnDisk": false
},
"flow-ide": {
"executablePath": "/usr/local/bin/flow"
},
"git-projects": {
"rootPath": "/Users/satya/Workspace/Projects"
},
"highlight-line": {
"enableBackgroundColor": false
},
"ide-flow": {
"checkOnFileSave": false,
"flowPath": "/usr/local/bin/flow"
},
"language-babel": {
"allowLocalOverride": true
},
"language-elm": {
"elmOraclePath": "/usr/local/bin/elm-oracle"
},
"language-markdown": {
"disableLanguageGfm": false
},
"linter": {
"errorPanelHeight": 82,
"inlineTooltipInterval": 500,
"lintOnFlyInterval": 1000,
"statusIconScope": "File"
},
"linter-eslint": {
"disableEslintIgnore": true,
"disableWhenNoEslintConfig": false,
"globalNodePath": "/usr/local/",
"lintHtmlFiles": true
},
"linter-flow": {
"executablePath": "/usr/local/bin/flow"
},
"nuclide": {
"nuclide-diagnostics-store": {
"legacyLintOnTheFly": true
},
"nuclide-distraction-free-mode": {
"hideToolBar": true
},
"nuclide-flow": {
"diagnosticsOnFly": true,
"enableStructuredTypeHints": true,
"pathToFlow": "/usr/local/bin/flow"
},
"nuclide-format-js": {
"reprint": true
},
"nuclide-home": {
"showHome": false
},
"nuclide-notifications": {
"whenFocused": true
},
"nuclide-objc": {
"enableAutomaticSquareBracketInsertion": true
},
"use": {
"nuclide-arcanist": false,
"nuclide-blame": false,
"nuclide-blame-provider-hg": false,
"nuclide-blame-ui": false,
"nuclide-clang-atom": false,
"nuclide-clipboard-path": false,
"nuclide-debugger-atom": false,
"nuclide-debugger-hhvm": false,
"nuclide-debugger-lldb-client": false,
"nuclide-debugger-lldb-server": false,
"nuclide-diff-view": false,
"nuclide-file-tree": false,
"nuclide-hack": false,
"nuclide-hack-symbol-provider": false,
"nuclide-hg-repository": false,
"nuclide-hhvm-toolbar": false,
"nuclide-home": false,
"nuclide-language-hack": false,
"nuclide-navigation-stack": false,
"nuclide-ocaml": false,
"nuclide-open-filenames-provider": false,
"nuclide-outline-view": false,
"nuclide-quick-open": false,
"nuclide-recent-files-provider": false,
"nuclide-recent-files-service": false,
"nuclide-related-files": false,
"nuclide-remote-ctags": false,
"nuclide-remote-projects": false,
"nuclide-side-bar": false,
"nuclide-source-control-side-bar": false,
"nuclide-test-runner": false,
"nuclide-vcs-log": false,
"nuclide-working-sets": false
}
},
"one-dark-ui": {},
"pigments": {
"extendAutocompleteToVariables": true
},
"react": {
"disableAutoClose": true,
"enabledForAllJavascriptFiles": true
},
"sass-autocompile": {
"compileFiles": "Only with first-line-comment",
"nodeSassPath": "/usr/local/bin",
"sourceMap": true
},
"seti-icons": {
"noColor": true
},
"sync-settings": {
"quietUpdateCheck": true
},
"term3": {
"shellOverride": "/bin/bash"
},
"todo-show": {
"sortAscending": false,
"sortBy": "Type"
},
"tool-bar": {
"iconSize": "16px",
"position": "Right",
"visible": false
},
"tree-view": {
"focusOnReveal": false,
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true,
"squashDirectoryNames": true
},
"welcome": {
"showOnStartup": false
}
}
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# https://atom.io/docs/latest/using-atom-basic-customization#cson
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
/*
* Examples
* (To see them, uncomment and save)
*/
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
}
atom-text-editor::shadow {
.comment, .entity.other.attribute-name {
font-family: "Operator Mono";
font-style: italic;
font-size: 1.075em;
line-height: normal;
}
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
font-variant-ligatures: contextual;
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
// border-color: red;
}
// Styling Error Types
atom-text-editor::shadow .linter-highlight, .linter-highlight{
&.error {
.region {
background-color: fadeout(@background-color-error, 50%);
border-bottom: 0;
}
}
&.warning {
.region {
background-color: fadeout(@background-color-warning, 50%);
border-bottom: 0;
}
}
&.trace, &.info {
.region {
background-color: fadeout(@background-color-info, 50%);
border-bottom: 0;
}
}
}
atom-text-editor .nuclide-diagnostics-gutter-ui-highlight-error > .region,
atom-text-editor::shadow .nuclide-diagnostics-gutter-ui-highlight-error > .region {
background-color:fadeout(#ff6347, 90%);
border-bottom: 1px dashed #ff6347;
}
atom-text-editor .nuclide-diagnostics-gutter-ui-highlight-warning > .region,
atom-text-editor::shadow .nuclide-diagnostics-gutter-ui-highlight-warning > .region {
background-color: fadeout(#e2c08d, 90%);
border-bottom: 1px dashed #e2c08d;
}
.theme-spacegray-dark-ui {
&.theme-behave-theme {
atom-pane-container atom-pane,
.tab-bar .tab.active, .tab-bar .tab.active:before,
atom-text-editor /deep/ ::-webkit-scrollbar-track {
background-color: #2D333D;
}
.tree-view-resizer /deep/ {
::-webkit-scrollbar-track {
background-color: #242830;
}
::-webkit-scrollbar-thumb {
background-color: #1D1F26;
}
}
}
.panel-left {
terminal-list-view {
margin-top: 0;
}
.tree-view {
padding-top: 10px;
}
}
.config-menu,
.package-card,
.alert-info {
border: 0;
}
.tab-bar {
padding: 0;
margin: 0 0 0 -2px;
}
.tool-bar {
border: 0;
background-color: #1D1F26;
.tool-bar-btn {
background-color: transparent;
border-radius: 1px;
&:focus, &:hover {
background-color: rgba(225, 225, 255, .1);
}
&.disabled {
opacity: .5;
background-color: transparent;
&:focus, &:hover {
background-color: transparent;
}
}
}
.tool-bar-spacer {
border-color: rgba(0, 0, 0, .1);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.