Skip to content

Instantly share code, notes, and snippets.

@coopermaruyama
Last active August 29, 2015 14:28
Show Gist options
  • Save coopermaruyama/f5d3dd1f4d5c9161bd87 to your computer and use it in GitHub Desktop.
Save coopermaruyama/f5d3dd1f4d5c9161bd87 to your computer and use it in GitHub Desktop.
# 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()}"
# pseudo-code
# atom.disposables.add atom.commands.add 'atom-text-editor',
# 'emmet:expand-abbreviation-with-tab': (e) ->
# if e.originalEvent.which is 9
# atom.commands.dispatch editorElement, 'snippets:expand'
# atom.commands.dispatch editorElement, 'snippets:next-tab-stop'
# e.abortKeyBinding()
# Fix PATH
process.env.PATH = ['/usr/local/bin', process.env.PATH].join(":")
'body .feedback':
'unset': 'feedback:send'
'atom-workspace':
'shift-cmd-H': 'git-plus:menu'
'alt-s enter': 'stacktrace:from-selection'
'alt-s p': 'stacktrace:paste'
'alt-s up': 'stacktrace:to-caller'
'alt-s down': 'stacktrace:follow-call'
'atom-text-editor':
'ctrl-m': 'bracket-matcher:go-to-matching-bracket'
'atom-text-editor:not([mini])':
'cmd-/': 'unset!'
'cmd-/': 'editor:toggle-line-comments'
'ctrl-b': 'turbo-javascript:wrap-block'
'shift-cmd-R': 'symbols-view:toggle-project-symbols'
# Prevent tab from expanding using Emmet when autocomplete is open.
'cmd-shift-v': 'clipboard-plus:toggle'
'ctrl-alt-shift-r': 'refactor:rename'
# ------------------------------------------------------------------------------
# 'Grammar-Specific' Scopes
'atom-text-editor[data-grammar~="js"]:not([mini])':
'ctrl-cmd-r':'docblockr:reparse'
'ctrl-cmd-w':'docblockr-wrap-lines'
'ctrl-,': 'turbo-javascript:end-line-comma'
# Stop emmet from hijacking tab from snippet tab stops
'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini])':
'tab': 'snippets:next-tab-stop'
# ------------------------------------------------------------------------------
# Specialized scopes. General 'conflicts resolutions' should be handled above.
# Only when an autocomplete dropdown is showing
'atom-text-editor.autocomplete-active:not([mini])':
'enter': 'autocomplete-plus:confirm'
'tab': 'autocomplete-plus:confirm'
# Allow ctrl-space to toggle autocomplete-plus
'atom-text-editor.autocomplete-active':
'ctrl-space': 'autocomplete-plus:cancel'
'atom-text-editor:not(.autocomplete-active)':
'ctrl-space': 'autocomplete-plus:activate'
'tab': 'snippets:next-tab-stop'
# Only inside comment blocks
'atom-text-editor:not([mini]) .comment':
'tab': 'unset!'
'tab': 'docblockr:parse-tab'
# ------------------------------------------------------------------------------
# ensure useful core movements don't get overwritten
'.platform-darwin atom-workspace atom-text-editor:not([mini])':
# Default keybindings
# 'ctrl-b': 'core:move-left' ------- Given to 'turbo-js:wrap-block'
'ctrl-e': 'editor:move-to-end-of-line'
'ctrl-f': 'core:move-right'
'ctrl-a': 'editor:move-to-first-character-of-line'
'cmd-j': 'editor:join-lines'
'ctrl-k': 'editor:cut-to-end-of-line'
'alt-d': 'editor:delete-to-end-of-word'
'ctrl-shift-K': 'editor:delete-line'
'ctrl-cmd-up': 'editor:move-line-up'
'ctrl-cmd-down': 'editor:move-line-down'
'cmd-enter': 'editor:newline-below'
'cmd-<': 'editor:scroll-to-cursor'
'alt-enter': 'editor:newline'
'alt-cmd-]': 'editor:unfold-current-row'
'.platform-darwin atom-workspace atom-text-editor':
'cmd-l': 'editor:select-line'
'cmd-k cmd-u': 'editor:upper-case'
'cmd-k cmd-l': 'editor:lower-case'
'alt-shift-left': 'editor:select-to-beginning-of-word'
'alt-shift-right': 'editor:select-to-end-of-word'
'alt-shift-F': 'editor:select-to-end-of-word'
'alt-shift-B': 'editor:select-to-beginning-of-word'
'alt-h': 'editor:delete-to-beginning-of-word'
'alt-delete': 'editor:delete-to-end-of-word'
'ctrl-shift-F': 'core:select-right'
'ctrl-shift-B': 'core:select-left'
'alt-shift-F': 'editor:select-to-end-of-word'
'alt-shift-B': 'editor:select-to-beginning-of-word'
'ctrl-shift-W': 'editor:select-word'
'ctrl-shift-A': 'editor:select-to-first-character-of-line'
'ctrl-shift-E': 'editor:select-to-end-of-line'
'ctrl-shift-P': 'core:select-up'
'ctrl-shift-N': 'core:select-down'
'cmd-k cmd-u': 'editor:upper-case'
'cmd-k cmd-l': 'editor:lower-case'
# core commands with custom keybindings
'alt-w': 'editor:toggle-soft-wrap'
[
{
"name": "apathy-theme",
"version": "1.7.3",
"theme": "syntax"
},
{
"name": "atom-beautify",
"version": "0.28.11"
},
{
"name": "atom-bootstrap3",
"version": "1.2.10"
},
{
"name": "atom-handlebars",
"version": "1.1.0"
},
{
"name": "atom-jasmine",
"version": "0.6.0"
},
{
"name": "atom-material-syntax",
"version": "0.2.3",
"theme": "syntax"
},
{
"name": "atom-material-ui",
"version": "0.6.0",
"theme": "ui"
},
{
"name": "atom-yeoman",
"version": "0.3.12"
},
{
"name": "auto-run",
"version": "0.2.1"
},
{
"name": "autocomplete-paths",
"version": "1.0.2"
},
{
"name": "base16-ocean-dark-spacegray",
"version": "0.10.0",
"theme": "syntax"
},
{
"name": "bootstrap-3-snippetset",
"version": "0.0.6"
},
{
"name": "coffee-compile",
"version": "0.18.0"
},
{
"name": "comment-headers",
"version": "2.8.0"
},
{
"name": "commitment",
"version": "0.1.3"
},
{
"name": "creative-dark-syntax",
"version": "0.6.0",
"theme": "syntax"
},
{
"name": "cucumber",
"version": "0.5.0"
},
{
"name": "docblockr",
"version": "0.7.3"
},
{
"name": "duotone-dark-syntax",
"version": "0.2.0",
"theme": "syntax"
},
{
"name": "file-icons",
"version": "1.6.7"
},
{
"name": "file-types",
"version": "0.5.1"
},
{
"name": "flex-tool-bar",
"version": "0.5.0"
},
{
"name": "gist-it",
"version": "0.8.0"
},
{
"name": "git-blame",
"version": "0.4.5"
},
{
"name": "git-diff-details",
"version": "0.20.0"
},
{
"name": "git-log",
"version": "0.4.1"
},
{
"name": "git-plus",
"version": "5.4.6"
},
{
"name": "github-web",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "green-syntax",
"version": "0.3.0",
"theme": "syntax"
},
{
"name": "greti-syntax",
"version": "0.5.4",
"theme": "syntax"
},
{
"name": "gruvbox",
"version": "1.0.5",
"theme": "syntax"
},
{
"name": "iris-ui",
"version": "0.7.1",
"theme": "ui"
},
{
"name": "isotope-ui",
"version": "2.5.1",
"theme": "ui"
},
{
"name": "javascript-snippets",
"version": "1.0.0"
},
{
"name": "jshint",
"version": "1.3.10"
},
{
"name": "language-babel",
"version": "0.11.8"
},
{
"name": "language-jade",
"version": "0.6.2"
},
{
"name": "language-json-comments",
"version": "0.16.3"
},
{
"name": "language-log",
"version": "0.6.0"
},
{
"name": "language-spacebars",
"version": "0.2.2"
},
{
"name": "leak-detector",
"version": "0.2.0"
},
{
"name": "linter",
"version": "1.4.3"
},
{
"name": "linter-coffeelint",
"version": "1.0.2"
},
{
"name": "linter-eslint",
"version": "3.0.2"
},
{
"name": "linter-jshint",
"version": "1.1.5"
},
{
"name": "linter-scss-lint",
"version": "2.0.0"
},
{
"name": "markdown-writer",
"version": "1.8.1"
},
{
"name": "material",
"version": "2.1.4",
"theme": "syntax"
},
{
"name": "material-design-syntax",
"version": "1.7.0",
"theme": "syntax"
},
{
"name": "merge-conflicts",
"version": "1.3.5"
},
{
"name": "meteor-api",
"version": "2.20.0"
},
{
"name": "meteor-snippets",
"version": "0.5.0"
},
{
"name": "metro-syntax",
"version": "0.3.1",
"theme": "syntax"
},
{
"name": "metro-ui",
"version": "2.2.2",
"theme": "ui"
},
{
"name": "minimap",
"version": "4.13.1"
},
{
"name": "night-snilek-syntax",
"version": "0.3.0",
"theme": "syntax"
},
{
"name": "node-debugger",
"version": "1.1.8"
},
{
"name": "nucleus-dark-ui",
"version": "0.1.10",
"theme": "ui"
},
{
"name": "oceanic-reef-syntax",
"version": "0.6.0",
"theme": "syntax"
},
{
"name": "pigments",
"version": "0.11.0"
},
{
"name": "react",
"version": "0.12.6"
},
{
"name": "regex-railroad-diagram",
"version": "0.8.4"
},
{
"name": "remote-edit",
"version": "1.8.15"
},
{
"name": "retro-gruvbox",
"version": "1.0.4",
"theme": "syntax"
},
{
"name": "scratch",
"version": "0.3.1"
},
{
"name": "ScssBundle",
"version": "0.5.0"
},
{
"name": "seti-monokai",
"version": "0.3.1",
"theme": "syntax"
},
{
"name": "seti-ui",
"version": "0.8.0",
"theme": "ui"
},
{
"name": "Stylus",
"version": "1.2.1"
},
{
"name": "Sublime-Style-Column-Selection",
"version": "1.3.0"
},
{
"name": "term2",
"version": "0.9.15"
},
{
"name": "todo-show",
"version": "0.14.0"
},
{
"name": "tool-bar",
"version": "0.1.8"
},
{
"name": "turbo-javascript",
"version": "1.1.3"
},
{
"name": "twilight-syntax",
"version": "0.7.0",
"theme": "syntax"
},
{
"name": "underscorejs-snippets",
"version": "0.2.2"
},
{
"name": "wrap-selection",
"version": "0.1.2"
},
{
"name": "atom-dark-syntax",
"version": "0.27.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.49.0",
"theme": "ui"
},
{
"name": "atom-light-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.41.0",
"theme": "ui"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "0.26.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "0.9.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.0.2",
"theme": "ui"
},
{
"name": "one-dark-syntax",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "one-light-syntax",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.0.2",
"theme": "ui"
},
{
"name": "solarized-dark-syntax",
"version": "0.38.1",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "0.22.1",
"theme": "syntax"
},
{
"name": "autocomplete-css",
"version": "0.9.0"
},
{
"name": "autocomplete-html",
"version": "0.7.2"
},
{
"name": "autocomplete-plus",
"version": "2.19.0"
},
{
"name": "autocomplete-snippets",
"version": "1.7.1"
},
{
"name": "autoflow",
"version": "0.25.0"
},
{
"name": "bookmarks",
"version": "0.35.0"
},
{
"name": "bracket-matcher",
"version": "0.76.0"
},
{
"name": "command-palette",
"version": "0.36.0"
},
{
"name": "dev-live-reload",
"version": "0.46.0"
},
{
"name": "encoding-selector",
"version": "0.21.0"
},
{
"name": "find-and-replace",
"version": "0.175.0"
},
{
"name": "fuzzy-finder",
"version": "0.87.0"
},
{
"name": "git-diff",
"version": "0.55.0"
},
{
"name": "go-to-line",
"version": "0.30.0"
},
{
"name": "grammar-selector",
"version": "0.47.0"
},
{
"name": "image-view",
"version": "0.54.0"
},
{
"name": "incompatible-packages",
"version": "0.24.1"
},
{
"name": "keybinding-resolver",
"version": "0.33.0"
},
{
"name": "link",
"version": "0.30.0"
},
{
"name": "markdown-preview",
"version": "0.150.0"
},
{
"name": "notifications",
"version": "0.57.0"
},
{
"name": "open-on-github",
"version": "0.37.0"
},
{
"name": "package-generator",
"version": "0.40.0"
},
{
"name": "release-notes",
"version": "0.53.0"
},
{
"name": "settings-view",
"version": "0.211.2"
},
{
"name": "snippets",
"version": "0.95.0"
},
{
"name": "status-bar",
"version": "0.75.1"
},
{
"name": "symbols-view",
"version": "0.100.0"
},
{
"name": "tabs",
"version": "0.82.0"
},
{
"name": "timecop",
"version": "0.31.0"
},
{
"name": "tree-view",
"version": "0.179.0"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "whitespace",
"version": "0.30.0"
},
{
"name": "wrap-guide",
"version": "0.35.0"
},
{
"name": "language-c",
"version": "0.45.0"
},
{
"name": "language-coffee-script",
"version": "0.41.0"
},
{
"name": "language-csharp",
"version": "0.6.0"
},
{
"name": "language-css",
"version": "0.32.1"
},
{
"name": "language-gfm",
"version": "0.79.0"
},
{
"name": "language-git",
"version": "0.10.0"
},
{
"name": "language-go",
"version": "0.31.0"
},
{
"name": "language-html",
"version": "0.40.0"
},
{
"name": "language-hyperlink",
"version": "0.14.0"
},
{
"name": "language-java",
"version": "0.15.0"
},
{
"name": "language-javascript",
"version": "0.82.0"
},
{
"name": "language-json",
"version": "0.15.0"
},
{
"name": "language-less",
"version": "0.28.1"
},
{
"name": "language-mustache",
"version": "0.12.0"
},
{
"name": "language-objective-c",
"version": "0.15.0"
},
{
"name": "language-perl",
"version": "0.28.0"
},
{
"name": "language-php",
"version": "0.27.0"
},
{
"name": "language-property-list",
"version": "0.8.0"
},
{
"name": "language-python",
"version": "0.38.0"
},
{
"name": "language-ruby",
"version": "0.56.0"
},
{
"name": "language-ruby-on-rails",
"version": "0.22.0"
},
{
"name": "language-sass",
"version": "0.39.1"
},
{
"name": "language-shellscript",
"version": "0.15.0"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.17.0"
},
{
"name": "language-text",
"version": "0.7.0"
},
{
"name": "language-todo",
"version": "0.25.0"
},
{
"name": "language-toml",
"version": "0.16.0"
},
{
"name": "language-xml",
"version": "0.30.0"
},
{
"name": "language-yaml",
"version": "0.22.0"
},
{
"name": "vim-mode",
"version": "0.58.0"
},
{
"name": "color-picker",
"version": "2.0.11"
},
{
"name": "slack-chat",
"version": "3.2.10"
},
{
"name": "sync-settings",
"version": "0.6.0"
}
]
{
"exception-reporting": {
"userId": "3f319dcc-a70a-adb5-4fba-4db63e235a6b"
},
"file-types": {
"^[^.]+.js$": "source.js",
"$debug": true
},
"welcome": {
"showOnStartup": false
},
"core": {
"ignoredNames": [
".meteor",
".git",
".DS_Store",
".bin"
],
"disabledPackages": [
"resize-panes",
"themed-settings",
"tree-view-filter",
"letter-spacing",
"stacktrace",
"save-session",
"scope-inspector",
"atom-jade",
"atom-lint",
"atom-angularjs",
"atom-coffee-repl",
"visual-bell",
"view-tail-large-files",
"atom-package-blank",
"autocomplete-glsl",
"coffee-porter",
"figlet",
"linter-handlebars",
"sass-autocompile",
"remote-atom",
"web-browser",
"language-make",
"background-tips",
"exception-reporting",
"language-clojure",
"spell-check",
"welcome",
"autosave",
"ever-notedown",
"coffee-refactor",
"atom-debugger",
"Scratchpad",
"language-javascript-semantic",
"chary-tree-view",
"block-comment",
"notebook",
"blackspace",
"tree-view-open-files",
"autohide-tree-view",
"angularjs",
"syntax-settings",
"hide-tree",
"archive-view",
"metrics",
"styleguide",
"project-manager",
"meteor-helper",
"task-list",
"git-grep",
"autocomplete-atom-api",
"refactor",
"js-refactor",
"emmet",
"ask-stack",
"atom-prettify",
"clipboard-plus",
"dash",
"git-wip",
"jscs-fixer",
"open-in-sourcetree",
"vim-mode-clipboard-plus",
"deprecation-cop",
"language-js-specs",
"linter-jscs",
"tool-bar-main",
"linter-jshint",
"linter-eslint"
],
"projectHome": "/Users/cooperm/sites",
"excludeVcsIgnoredPaths": false,
"destroyEmptyPanes": false,
"themes": [
"atom-material-ui",
"apathy-theme"
],
"audioBeep": false,
"followSymlinks": false
},
"editor": {
"invisibles": {},
"zoomFontWhenCtrlScrolling": true,
"softWrapAtPreferredLineLength": true,
"showInvisibles": true,
"showIndentGuide": true,
"softWrapHangingIndent": 1,
"scrollPastEnd": true,
"softWrap": true,
"fontFamily": "Source Code Pro"
},
"linter": {
"showInfoMessages": true,
"clearOnChange": true,
"showErrorInline": false,
"showHighlighting": false,
"underlineIssues": false,
"showErrorTabLine": true,
"defaultErrorTab": "line",
"showErrorTabProject": false,
"showErrorTabFile": false,
"ignoredMessageTypes": [
"no_trailing_whitespace"
],
"lintOnFly": false,
"statusIconScope": "Line"
},
"isotope-ui": {
"spaciousMode": false,
"backgroundColor": "false",
"fontWeight": "Regular",
"customBackgroundColorPicker": {
"red": 29,
"green": 29,
"blue": 29,
"alpha": 1
},
"customBackgroundColor": true
},
"gist-it": {
"userToken": "3d439a960ec641ff8584fef54eaaf357a29f876b",
"newGistsDefaultToPrivate": true
},
"linter-scss-lint": {
"scssLintExecutablePath": "/Users/cooperm/.rvm/gems/ruby-2.2.1/bin"
},
"coffee-refactor": {},
"minimap": {
"scrollAnimation": true,
"interline": 3,
"minimapScrollIndicator": false
},
"linter-jscs": {
"verbose": true,
"preset": "google",
"harmony": true,
"onlyConfig": true,
"messageType": "warning"
},
"atom-lint": {},
"sass-autocompile": {},
"git-plus": {
"openInPane": false,
"wordDiff": false
},
"git-blame": {
"ignoreWhiteSpaceDiffs": true
},
"atomatigit": {},
"atom-beautify": {
"_analyticsUserId": "71ca40bc-1dad-4495-97c3-42211656647f"
},
"coffeedocs": {
"SearchLineBelowInstead": true
},
"meteor-helper": {
"mongoURL": "mongodb://localhost:3001",
"meteorPort": 5555
},
"remote-atom": {},
"remote-edit": {},
"tree-view-filter": {},
"tree-ignore": {},
"scope-inspector": {
"userId": "9fdc8d9f2e24d92488f4879b3fdae77c1c96a743",
"showSidebar": false,
"showBreadcrumbs": false
},
"docblockr": {
"per_section_indent": true,
"lower_case_primitives": true,
"short_primitives": true,
"extra_tags_go_after": true,
"deep_indent": true,
"return_description": false
},
"remember-session": {
"x": 0,
"y": 23,
"width": 2560,
"height": 1573,
"treeWidth": 200,
"path": "/Users/cooperm/sites/cfy/app",
"tabs": "/Users/cooperm/sites/cfy/app/packages.json&&/Users/cooperm/sites/cfy/app/packages.json&&/Users/cooperm/sites/cfy/app/tests/nightwatch/walkthrough/google.js&&/Users/cooperm/sites/cfy/app/convertify/collections/quantify_model.js&&/Users/cooperm/sites/cfy/app/convertify/collections/network_model.coffee&&/Users/cooperm/sites/cfy/app/packages.json&&/Users/cooperm/.atom/init.coffee",
"selectedTab": 2
},
"save-session": {
"dataSaveFolder": "/Users/cooperm/.atom/packages/save-session/projects",
"projects": [
"/Users/cooperm/.atom/packages/apathy-theme"
],
"windowX": 0,
"windowY": 0,
"windowWidth": 2560,
"windowHeight": 1600,
"fullScreen": true,
"treeSize": 279
},
"markdown-preview": {},
"git-diff": {},
"project-manager:showPath": true,
"notebook": {
"removeNotepadOnSavingToProject": true
},
"autocomplete-plus": {
"scopeBlacklist": [
".comment",
".has-selection"
],
"defaultProvider": "Fuzzy",
"strictMatching": true
},
"file-icons": {
"onChanges": true
},
"pigments": {},
"coffee-compile": {
"focusEditorAfterCompile": true
},
"syntax-settings": {
"source": {
"go": {
"editorSettings": {}
},
"python": {
"editorSettings": {}
}
}
},
"merge-conflicts": {},
"letter-spacing": {},
"emmet": {
"useEmmetComments": false,
"formatLineBreaks": false
},
"whitespace": {
"ignoreWhitespaceOnCurrentLine": false
},
"base16-syntax": {
"scheme": "Colors"
},
"apathy-theme": {
"contentPaddingLeft": 70,
"enableTreeViewStyles": true,
"syntaxSaturation": "110%",
"enableTreeViewBorder": true,
"customSyntaxBgColor": {
"red": 12,
"green": 9,
"blue": 18,
"alpha": 1
},
"semanticHighlighting": false
},
"git-log": {},
"view-tail-large-files": {},
"tabs": {
"showIcons": true,
"usePreviewTabs": true,
"tabScrolling": true
},
"sublime-tabs": {
"showOnRightSide": true,
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true
},
"tree-view": {
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true
},
"figlet": {},
"language-babel": {},
"vim-mode": {
"useClipboardAsDefaultRegister": true,
"useSmartcaseForSearch": true
},
"one-dark-ui": {
"layoutMode": "Spacious"
},
"ever-notedown": {
"sortBy": "Modification Time"
},
"jscs-fixer": {},
"node-debugger": {},
"git-diff-details": {
"closeAfterCopy": true
},
"status-bar": {
"cursorPositionFormat": "Line %L – Column %C"
},
"linter-jshint": {
"disableWhenNoJshintrcFileInPath": true,
"lintInlineJavaScript": true
},
"todo-show": {
"ignoreThesePaths": [
"*/node_modules/",
"*/vendor/",
"*/bower_components",
"run_nightwatch.sh"
]
},
"autohide-tree-view": {
"touchAreaSize": 400,
"showDelay": 100,
"hideDelay": 100,
"animationSpeed": 2,
"showOn": "hover + click",
"hiddenWidth": 15,
"pushEditor": true,
"maxWindowWidth": 2000
},
"tree-view-open-files": {
"maxHeight": 0
},
"hide-tree": {
"timeout": 1000,
"animateTime": 50
},
"project-manager": {},
"Zen": {
"showWordCount": true
},
"color-picker": {
"preferredFormat": "HEX",
"randomColor": false
},
"linter-eslint": {
"eslintPath": "/usr/local/lib/node_modules/eslint",
"disableWhenNoEslintrcFileInPath": true,
"useGlobalEslint": true
},
"git-wip": {
"wipOnSave": false
},
"term2": {},
"atom-material-ui": {
"depth": true,
"compactTreeView": true,
"rippleAccentColor": true,
"themeSyle": "Lighter",
"panelContrast": true
},
"unity-ui": {
"showIcons": true
},
"leak-detector": {
"autoRun": true
},
"auto-run": {
"devCommands": [
"leak-detector:start"
]
},
"tool-bar": {
"position": "Bottom"
},
"metro-ui": {
"themeAccentColor": {
"red": 22,
"green": 17,
"blue": 39,
"alpha": 1
},
"theme": "Adaptive Dark",
"useSystemAccentColor": false,
"fontSize": 13
},
"react": {
"enabledForAllJavascriptFiles": true
},
"flex-tool-bar": {},
"jshint": {
"supportLintingJsx": true
},
"slack-chat": {
"api_key": "2929453292.9526471300",
"api_secret": "66d191f07ebf5227f927a604754f295f"
}
}
'.text.html':
'jQuery script':
'prefix': 'jquery'
'body': '<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>'
###=============================================================================
= JS =
----------------------------------------------------------------------------=###
'.source.js,.source.css,.source.scss, .source.less':
'Comment - hr':
'prefix': 'hr'
'body': """
/*=============================================================================
= ${1:Comment Section}
=============================================================================*/
"""
'Comment - Subsection comment':
'prefix': 'comm-sub'
'body': """
/*------- ${1:Subsection comment block} -------*/$2
"""
'Comment - 80 Col Header':
'prefix': 'h1'
'body': """
/*****************************************************************************/
/* ${1:Section Title} */
/*****************************************************************************/\n$2
"""
'Linter configuration directive':
'prefix': 'lcfg'
'body': """
/* ${1:jshint} ${2:name}: ${3:value} */
"""
###=============================================================================
= CSS/SASS/LESS =
----------------------------------------------------------------------------=###
# Attribute Module Pattern for CSS
'.source.scss,.source.sass,.source.css, .source.less':
'Atribute Module Pattern: Define new style':
'prefix': 'am'
'body': '[am-${1:ModuleName}${2:~="${3:value}"}] {\n $4\n}'
###=============================================================================
= Jasmine =
----------------------------------------------------------------------------=###
'.source.spec.js':
'spyOn':
'prefix': 'spy'
'body': 'spyOn(${1:target}, "${2:method}");'
'spyOn.and.callThrough':
'prefix': 'spyc'
'body': 'spyOn(${1:target}, "${2:method}").and.callThrough();'
'spyOn.and.returnValue':
'prefix': 'spyv'
'body': 'spyOn(${1:target}, "${2:method}").and.returnValue(${3:value});'
'spyOn.and.callFake':
'prefix': 'spyf'
'body': 'spyOn(${1:target}, "${2:method}").and.callFake(${3:value});'
'spyOn.and.throwError':
'prefix': 'spye'
'body': 'spyOn(${1:target}, "${2:method}").and.throwError("${3:error}");'
'jasmine.createSpy':
'prefix': 'cspy'
'body': '${1:target} = jasmine.createSpy("${1:target}");'
'jasmine.createSpyObj':
'prefix': 'spyo'
'body': '${1:obj} = jasmine.createSpyObj("${1:obj}", ["${2:method}"]);'
'Expect not to be defined':
'prefix': 'notd'
'body': 'expect($1).not.toBeDefined();'
'Expect not to be falsy':
'prefix': 'notf'
'body': 'expect(${1:target}).not.toBeFalsy();'
'Expect not to be null':
'prefix': 'notn'
'body': 'expect(${1:target}).not.toBeNull();'
'Expect not to be truthy':
'prefix': 'nott'
'body': 'expect(${1:target}).not.toBeTruthy();'
'Expect not to contain':
'prefix': 'notc'
'body': 'expect(${1:target}).not.toContain(${2:value});'
'Expect to be defined':
'prefix': 'ed'
'body': 'expect($1).toBeDefined();'
'Expect to be falsy':
'prefix': 'ef'
'body': 'expect(${1:target}).toBeFalsy();'
'Expect to be null':
'prefix': 'en'
'body': 'expect(${1:target}).toBeNull();'
'Expect to be truthy':
'prefix': 'et'
'body': 'expect(${1:target}).toBeTruthy();'
'Expect to contain':
'prefix': 'ec'
'body': 'expect(${1:target}).toContain(${2:value});'
'Expect to equal':
'prefix': 'ee'
'body': 'expect(${1:target}).toEqual(${2:value});'
'Expect to match':
'prefix': 'em'
'body': 'expect(${1:target}).toMatch(${2:pattern});'
'Expect to have been called':
'prefix': 'ebc'
'body': 'expect(${1:target}).toHaveBeenCalled();'
'Expect to have been called with':
'prefix': 'ebcw'
'body': 'expect(${1:target}).toHaveBeenCalledWith("${2:value}");'
'Expect to throw error':
'prefix': 'ete'
'body': 'expect(${1:target}).toThrowError("${2:error}");'
'Expect':
'prefix': 'ex'
'body': 'expect($1)$2;'
'Expect to have any':
prefix: 'ethanyk'
body: """
expect(${1:target}).to.have.any.keys("${2:key1}", "${3:key2}");
"""
'Expect to have all':
prefix: 'ethallk'
body: 'expect(${1:target}).to.have.all.keys("${2:key1}", "${3:key2}");'
'Expect to be at least':
prefix: 'ethloal'
body: 'expect(${1:target}).to.be.at.least(${2:n});'
'Expect to be at most':
prefix: 'ethloam'
body: 'expect(${1:target}).to.be.at.most(${2:n});'
'Describe block':
'prefix': 'des'
'body': """
describe("${1:description}", function () {
$2
});
"""
'It block':
'prefix': 'it'
'body': """
it("${1:description}", function () {
$2
});
"""
'It Async block':
'prefix': 'itA'
'body': """
it("${1:description}", function (${2:done}) {
$3
${2:done}();
});
"""
'After-Each block':
'prefix': 'aft'
'body': """
afterEach(function () {
$1
});
"""
'After-Each Async block':
'prefix': 'aftA'
'body': """
afterEach(function (${1:done}) {
$2
${1:done}();
});
"""
'Before-Each block':
'prefix': 'bef'
'body': """
beforeEach(function () {
$1
});
"""
'Before-Each Async block':
'prefix': 'befA'
'body': """
beforeEach(function (${1:done}) {
$2
${1:done}();
});
"""
'Runs':
'prefix': 'ru'
'body': """
runs(function () {
$1
});
"""
###=============================================================================
= Coffeescript =
----------------------------------------------------------------------------=###
'.source.coffee':
'ViewModel - Collection':
'prefix': 'vmc'
'body': """
Template.${1:Items}.viewmodel "$1", ${2:${3:viewmodelToExtend},} {
$1: -> $1.find()
${4:active$1: null
}$5
}, "$1"
"""
'ViewModel - Item':
'prefix': 'vmi'
'body': """
Template.${1:item}.viewmodel ((data) ->
"$1\_\#\{data._id\}" # use as `n`: ViewModel.byId(n)
), ${2:${3:viewmodelToExtend},} ((data) ->
id: data._id
$1: -> $1.findOne @id()
${4:activate: -> @parent().active @id()
}${5:isActive: -> @parent().active() is @id()
}$9
), ["${6:helper1}"${7:, "${8:helper2}"}]
"""
'Coffeescript Comment - Todo Block':
'prefix': 'comm-todo-coffee'
'body': """
##
## TODO: ${1: Some task}
##
"""
# subection
'Coffeescript Comment - Subsection':
'prefix': 'cs'
# uncomment when substitutions become supported
# 'body': '# -${1/(.)/-/ig}\n# ${1:Some Comment}'
'body': """
# ------------------------------------------------------------------------------
# ${1: Some comment}
"""
# header
'Coffeescript Comment - Header section':
'prefix': 'hr'
'body': """
###=============================================================================
= ${1:Comment} =
----------------------------------------------------------------------------=###
$2
"""
# block
'Coffeescript Comment - Block section':
'prefix': 'comm-block'
'body': """
###
## ${1:Shared Functions: Foobar Widget}
##
${2:## @${3:description} ${4}
}##
###
${6}
"""
'Describe block':
'prefix': 'des'
'body': """
describe "${1:description}", ->
$2
"""
'It block':
'prefix': 'it'
'body': """
it "${1:description}", ->
$2
"""
'It Async block':
'prefix': 'itA'
'body': """
it "${1:description}", (${2:done}) ->
$3
${2:done}();
"""
'After-Each block':
'prefix': 'aft'
'body': """
afterEach ->
$1
"""
'After-Each block':
'prefix': 'aftA'
'body': """
afterEach (${1:done}) ->
$2
${1:done}();
"""
'Before-Each block':
'prefix': 'bef'
'body': """
beforeEach ->
$1
"""
'Before-Each Async block':
'prefix': 'befA'
'body': """
beforeEach (${1:done}) ->
$2
${1:done}();
"""
'Runs':
'prefix': 'ru'
'body': """
runs ->
$1
"""
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
/* @purple: hsl(247, 31%, 51%); */
@purple: hsl(267, 51%, 8%);
@purple-dark-1: hsl(247, 28%, 48%);
// @syntax-background-color: green !important;
.btn, .btn.icon,
.settings-view select.form-control,
.settings-view .config-menu .nav > li.active > a {
// background-color: @purple;
}
tabs-bar,
.tab-bar {
tabs-tab,
.tab {
&.active {
// &,&:before { border-bottom: solid 4px @purple; }
}
.title[data-name$=".less"]:before {
// color: @purple;
}
}
}
atom-pane:not(.active) {
tabs-tab, .tab {
&.active, &.active:before {
// border-bottom: 4px solid @purple-dark-1;
}
}
}
.tree-view {
}
// style the background and foreground colors on the atom-text-editor-element
// itself
atom-text-editor {
/* font-family: 'Inconsolata'; */
// font-family: 'Consolas';
// -webkit-filter: brightness(95%);
font-family: 'Source Code Pro';
// -webkit-font-smoothing: subpixel-antialiased !important;
// text-shadow: none;
// color: hsl(40, 30%, 90%);
&::shadow {
// -webkit-filter: saturate(90%) brightness(90%) contrast(90%); // dev
// -webkit-filter: saturate(90%) brightness(90%) sepia(0%) grayscale(0%) hue-rotate(0deg) invert(0%) opacity(100%) contrast(90%); // master
// -webkit-text-stroke-width: 0;
// font-weight: normal !important;
// brightness, contrast, saturate;
span.keyword.operator.stylus,
.constant.numeric {
color: #eeffe0;
}
.string {
color: #ffc91b;
}
.string-contents.quoted {
color: #bfdee3;
}
.punctuation.definition.tag.html {
color: white;
}
.brace + .string,
.begin ~ .string:not(:last-child) {
color: #ffc91b;
}
.support.function {
color: #00ffcf;
}
.support.type {
color: #89d4f5;
}
.keyword.operator {
color: #ff0202;
font-weight: 900;
}
.entity.name.tag {
color: #00c9a1;
}
.entity.other.attribute-name {
color: #ff7317;
// font-family: Gotham HTF;
letter-spacing: 1px;
}
.variable {
color: #fc0d63;
}
.comment {
color: #5a5b6b;
}
.support.class {
color: #2bbc13;
font-weight: bold;
}
.source.js .meta.brace.curly,
.source.js .punctuation.terminator.statement.js {
color: #7b95a2;
}
.entity.other.attribute-name.pseudo-class.stylus {
color: #00ffcf;
}
}
&::shadow .source {}
}
// To style other content in the text editor's shadow DOM, use the ::shadow
// expression
atom-text-editor::shadow .cursor {
}
.tree-view-open-files {
z-index: 2;
margin-top: 8px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment