Skip to content

Instantly share code, notes, and snippets.

@usirin
Last active September 19, 2017 01:26
Show Gist options
  • Save usirin/0b995d998c3aaec4286fac7b9d31d55c to your computer and use it in GitHub Desktop.
Save usirin/0b995d998c3aaec4286fac7b9d31d55c 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()}"
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings
# http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
# http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
# normal mode
'atom-text-editor.vim-mode-plus.normal-mode':
', a': 'editor:toggle-line-comments'
', f': 'prettier:format'
', e v': 'settings-view:install-packager-and-theme'
';': 'ex-mode:open'
'g f': 'open-this:here'
'ctrl-w f': 'open-this:split-right'
'ctrl-w F': 'open-this:split-down'
'g m': 'vim-mode-plus-user:quick-highlight'
'space m': 'quick-highlight:toggle'
'space M': 'quick-highlight:clear'
'g q q': 'autoflow:reflow-selection'
'enter': 'editor:newline-below'
'g F': 'goto-definition:go'
'ctrl-w ctrl-h': 'pane:split-left-and-move-active-item'
'ctrl-w ctrl-j': 'pane:split-down-and-move-active-item'
'ctrl-w ctrl-k': 'pane:split-up-and-move-active-item'
'ctrl-w ctrl-l': 'pane:split-right-and-move-active-item'
'atom-text-editor.vim-mode-plus.insert-mode.autocomplete-active':
'escape': 'autocomplete-plus:cancel'
'atom-text-editor.vim-mode-plus:not(.normal-mode)':
'escape': 'vim-mode-plus:activate-normal-mode'
'atom-text-editor.vim-mode-plus.insert-mode':
'j j': 'vim-mode-plus:activate-normal-mode'
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
'|': 'pane:split-right-and-copy-active-item'
'_': 'pane:split-down-and-copy-active-item'
't t': 'atom-vim-like-tab:new'
't q': 'atom-vim-like-tab:close'
't [': 'atom-vim-like-tab:previous'
't ]': 'atom-vim-like-tab:next'
', t': 'atom-vim-like-tab:list'
', b': 'nuclide-open-filenames-provider:toggle-provider'
'(': 'vim-mode-plus-user:move-to-previous-symbol'
')': 'vim-mode-plus-user:move-to-next-symbol'
'ctrl-j': 'window:focus-pane-below'
'ctrl-k': 'window:focus-pane-above'
'ctrl-h': 'window:focus-pane-on-left'
'ctrl-l': 'window:focus-pane-on-right'
'.platform-darwin':
'cmd-,': 'settings-view:open'
'ctrl-f f': 'project-find:show'
'ctrl-b': 'nuclide-open-filenames-provider:toggle-provider'
'.platform-darwin atom-workspace':
'ctrl-p': 'nuclide-quick-open:find-anything-via-omni-search'
'cmd-p': 'nuclide-quick-open:find-anything-via-omni-search'
', o': 'advanced-open-file:toggle'
'cmd-shift-o': 'advanced-open-file:toggle'
'ctrl-o': 'advanced-open-file:toggle'
'.advanced-open-file atom-text-editor':
'ctrl-j': 'advanced-open-file:move-cursor-down'
'ctrl-k': 'advanced-open-file:move-cursor-up'
'cmd-j': 'advanced-open-file:move-cursor-bottom'
'cmd-k': 'advanced-open-file:move-cursor-top'
'tab': 'advanced-open-file:autocomplete'
'body atom-text-editor.autocomplete-active':
'ctrl-k': 'autocomplete-plus:move-up'
'ctrl-j': 'autocomplete-plus:move-down'
'pageup': 'autocomplete-plus:page-up'
'pagedown': 'autocomplete-plus:page-down'
'home': 'autocomplete-plus:move-to-top'
'end': 'autocomplete-plus:move-to-bottom'
[
{
"name": "about",
"version": "1.7.8"
},
{
"name": "advanced-open-file",
"version": "0.16.6"
},
{
"name": "archive-view",
"version": "0.63.3"
},
{
"name": "atom-dark-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.0",
"theme": "ui"
},
{
"name": "atom-ide-ui",
"version": "0.3.3"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.0",
"theme": "ui"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.3"
},
{
"name": "autocomplete-css",
"version": "0.17.3"
},
{
"name": "autocomplete-html",
"version": "0.8.1"
},
{
"name": "autocomplete-modules",
"version": "1.7.0"
},
{
"name": "autocomplete-paths",
"version": "2.11.0"
},
{
"name": "autocomplete-plus",
"version": "2.35.9"
},
{
"name": "autocomplete-snippets",
"version": "1.11.1"
},
{
"name": "autoflow",
"version": "0.29.0"
},
{
"name": "autosave",
"version": "0.24.3"
},
{
"name": "background-tips",
"version": "0.27.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.44.4"
},
{
"name": "bracket-matcher",
"version": "0.87.3"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "command-palette",
"version": "0.39.2"
},
{
"name": "dalek",
"version": "0.2.1"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.47.1"
},
{
"name": "encoding-selector",
"version": "0.23.5"
},
{
"name": "ex-mode",
"version": "0.18.0"
},
{
"name": "exception-reporting",
"version": "0.41.4"
},
{
"name": "file-icons",
"version": "2.1.11"
},
{
"name": "find-and-replace",
"version": "0.212.2"
},
{
"name": "firewatch-syntax",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "fuzzy-finder",
"version": "1.5.8"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "github",
"version": "0.5.1"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "grammar-selector",
"version": "0.49.5"
},
{
"name": "ide-typescript",
"version": "0.6.1"
},
{
"name": "image-view",
"version": "0.62.3"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "keybinding-resolver",
"version": "0.38.0"
},
{
"name": "language-c",
"version": "0.58.1"
},
{
"name": "language-clojure",
"version": "0.22.4"
},
{
"name": "language-coffee-script",
"version": "0.49.0"
},
{
"name": "language-csharp",
"version": "0.14.2"
},
{
"name": "language-css",
"version": "0.42.5"
},
{
"name": "language-gfm",
"version": "0.90.1"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.44.2"
},
{
"name": "language-html",
"version": "0.47.7"
},
{
"name": "language-hyperlink",
"version": "0.16.2"
},
{
"name": "language-java",
"version": "0.27.4"
},
{
"name": "language-javascript",
"version": "0.127.3"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-less",
"version": "0.33.0"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-mustache",
"version": "0.14.1"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.37.0"
},
{
"name": "language-php",
"version": "0.41.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.45.4"
},
{
"name": "language-ruby",
"version": "0.71.3"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.2"
},
{
"name": "language-sass",
"version": "0.61.1"
},
{
"name": "language-shellscript",
"version": "0.25.3"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.8"
},
{
"name": "language-text",
"version": "0.7.3"
},
{
"name": "language-todo",
"version": "0.29.2"
},
{
"name": "language-toml",
"version": "0.18.1"
},
{
"name": "language-typescript",
"version": "0.1.0"
},
{
"name": "language-xml",
"version": "0.35.2"
},
{
"name": "language-yaml",
"version": "0.30.2"
},
{
"name": "line-ending-selector",
"version": "0.7.3"
},
{
"name": "link",
"version": "0.31.3"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-eslint",
"version": "8.3.2"
},
{
"name": "linter-ui-default",
"version": "1.6.10"
},
{
"name": "markdown-preview",
"version": "0.159.13"
},
{
"name": "metrics",
"version": "1.2.6"
},
{
"name": "notifications",
"version": "0.69.2"
},
{
"name": "one-dark-syntax",
"version": "1.8.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.10.8",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.10.8",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.1"
},
{
"name": "package-generator",
"version": "1.1.1"
},
{
"name": "prettier-atom",
"version": "0.39.0"
},
{
"name": "quick-highlight",
"version": "0.10.0"
},
{
"name": "settings-view",
"version": "0.251.8"
},
{
"name": "snippets",
"version": "1.1.4"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.72.2"
},
{
"name": "status-bar",
"version": "1.8.13"
},
{
"name": "styleguide",
"version": "0.49.6"
},
{
"name": "symbols-view",
"version": "0.118.0"
},
{
"name": "sync-settings",
"version": "0.8.3"
},
{
"name": "tabs",
"version": "0.107.2"
},
{
"name": "timecop",
"version": "0.36.0"
},
{
"name": "tree-view",
"version": "0.217.9"
},
{
"name": "update-package-dependencies",
"version": "0.12.0"
},
{
"name": "vim-mode-plus",
"version": "1.6.0"
},
{
"name": "vim-mode-plus-keymaps-for-surround",
"version": "0.2.1"
},
{
"name": "vim-mode-plus-move-to-symbols",
"version": "0.3.0"
},
{
"name": "welcome",
"version": "0.36.5"
},
{
"name": "whitespace",
"version": "0.37.2"
},
{
"name": "wrap-guide",
"version": "0.40.2"
}
]
{
"advanced-open-file": {
"createDirectories": true
},
"atom-clock": {
"dateFormat": "MMM Do, h:mm a"
},
"atom-ide-ui": {
"atom-ide-code-format": {
"formatOnSave": true,
"formatOnType": false
},
"atom-ide-diagnostics-ui": {}
},
"atom-ternjs": {
"useSnippets": true
},
"atom-vim-like-tab": {},
"autocomplete-modules": {
"webpack": true,
"webpackConfigFilename": "webpack.config.coffee"
},
"autocomplete-plus": {
"autoActivationDelay": 50,
"backspaceTriggersAutocomplete": true,
"minimumWordLength": 1,
"strictMatching": true,
"useCoreMovementCommands": false
},
"browser-plus": {
"openInSameWindow": [
"www.google.com",
"www.stackoverflow.com",
"google.com",
"stackoverflow.com",
"koding.com"
]
},
"coffee-compile": {
"compileOnSave": true
},
"command-palette": {},
"core": {
"closeDeletedFileTabs": true,
"closeEmptyWindows": false,
"customFileTypes": {
"source.coffee": [
"cjsx",
"coffee"
],
"source.ini": [
".buckconfig",
".hgrc",
".flowconfig"
],
"source.json": [
".arcconfig",
"BUCK.autodeps"
],
"source.python": [
"BUCK"
]
},
"disabledPackages": [
"language-clojure",
"language-csharp",
"language-java",
"language-perl",
"language-c",
"language-mustache",
"language-objective-c",
"language-php",
"language-python",
"language-ruby",
"language-ruby-on-rails",
"language-sql",
"language-toml",
"about",
"background-tips",
"encoding-selector",
"fuzzy-finder",
"welcome",
"spell-check",
"language-sass",
"language-xml",
"line-ending-selector",
"link",
"metrics",
"linter"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"node_modules",
"npm-debug.log",
"bundle.js"
],
"openEmptyEditorOnStart": false,
"packagesWithKeymapsDisabled": [],
"projectHome": "/Users/umutsirin/dev/usirin",
"telemetryConsent": "limited",
"themes": [
"one-dark-ui",
"firewatch-syntax"
],
"titleBar": "custom-inset"
},
"editor": {
"atomicSoftTabs": false,
"fontFamily": "SFMono-Regular",
"invisibles": {},
"lineHeight": 1.3,
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true,
"tabType": "soft"
},
"ex-mode": {
"splitbelow": true
},
"exception-reporting": {
"userId": "728e24b4-d423-a7c3-c2c2-97f39be00b79"
},
"file-icons": {},
"find-and-replace": {
"liveSearchMinimumCharacters": 2,
"scrollToResultOnLiveSearch": true
},
"git-plus": {
"commits": {
"verboseCommits": true
},
"general": {
"_analyticsUserId": "3834363c-8977-4e14-9be6-e1ad54938a2f"
}
},
"kd": {
"terminalPath": "iTerm"
},
"keystroke": {},
"language-babel": {
"autoIndentJSX": true
},
"linter": {
"lintOnChange": false
},
"linter-eslint": {},
"linter-ui-default": {
"panelHeight": 85
},
"markdown-preview": {
"useGitHubStyle": true
},
"nuclide": {
"atom-ide-diagnostics-ui": {},
"installRecommendedPackages": true,
"nuclide-buck": {
"compileErrorDiagnostics": false
},
"nuclide-clang": {
"enableDefaultFlags": false
},
"nuclide-diagnostics-ui": {},
"nuclide-distraction-free-mode": {
"hideToolBar": true
},
"nuclide-file-tree": {
"hideIgnoredNames": false,
"revealFileOnSwitch": true,
"showOpenFiles": false
},
"nuclide-health": {
"toolbarJewel": "CPU"
},
"nuclide-hg-repository": {
"enableDiffStats": true
},
"nuclide-home": {
"showHome": false
},
"nuclide-python": {
"autocompleteArguments": false,
"enableLinting": false
},
"nuclide-react-native": {},
"nuclide-remote-projects": {
"connectionProfiles": [
{
"deletable": true,
"displayTitle": "team.koding.com",
"params": {
"displayTitle": "team.koding.com",
"username": "usirin",
"server": "usirin.koding.team",
"cwd": "/home/usirin",
"sshPort": "22",
"authMethod": "PRIVATE_KEY",
"pathToPrivateKey": "/Users/umutsirin/.ssh/kd-ssh-key",
"remoteServerCommand": "PATH=/usr/local/node-v6.9.4-linux-x64/bin:$PATH nuclide-start-server"
},
"saveable": true
},
{
"deletable": true,
"displayTitle": "nvm falan",
"params": {
"displayTitle": "nvm falan",
"username": "usirin",
"server": "162.243.60.45",
"cwd": "/home/usirin/",
"sshPort": "22",
"authMethod": "PRIVATE_KEY",
"pathToPrivateKey": "/Users/umutsirin/.ssh/id_rsa_nuclide",
"remoteServerCommand": ""
},
"saveable": true
},
{
"deletable": true,
"displayTitle": "kd-io.dev",
"params": {
"displayTitle": "kd-io.dev",
"username": "usirin",
"server": "54.169.209.221",
"cwd": "/home/usirin/kdio",
"sshPort": "22",
"authMethod": "PRIVATE_KEY",
"pathToPrivateKey": "/Users/umutsirin/.ssh/id_rsa_nuclide",
"remoteServerCommand": ""
},
"saveable": true
},
{
"deletable": true,
"displayTitle": "usir.in",
"params": {
"displayTitle": "usir.in",
"username": "usirin",
"server": "usir.in",
"cwd": "/home/usirin",
"sshPort": "22",
"authMethod": "PRIVATE_KEY",
"pathToPrivateKey": "/Users/umutsirin/.ssh/kd-ssh-key",
"remoteServerCommand": ""
},
"saveable": true
},
{
"deletable": true,
"displayTitle": "usirin.koding.team",
"params": {
"displayTitle": "usirin.koding.team",
"username": "usirin",
"server": "usirin.koding.team",
"cwd": "/home/usirin/koding",
"sshPort": "22",
"authMethod": "PRIVATE_KEY",
"pathToPrivateKey": "/Users/umutsirin/.ssh/kd-ssh-key",
"remoteServerCommand": "PATH=/home/usirin/.nvm/versions/node/v8.4.0/bin:$PATH nuclide-start-server"
},
"saveable": true
}
]
},
"nuclide-source-control-side-bar": {
"createStacked": true
},
"nuclide-type-coverage": {
"colorizeStatusBar": false
},
"nuclide-working-sets": {
"workingSets": [
{
"name": "koding",
"active": false,
"uris": [
"nuclide://usirin.koding.team/home/usirin/koding"
]
},
{
"name": "client",
"active": false,
"uris": [
"/Users/umutsirin/dev/koding/koding/client"
]
},
{
"name": "client/app",
"active": false,
"uris": [
"/Users/umutsirin/dev/koding/koding/client/app/lib"
]
},
{
"name": "client/app/sprites",
"active": false,
"uris": [
"/Users/umutsirin/dev/koding/koding/client/app/lib/sprites"
]
},
{
"name": "client/ace/sprites",
"active": false,
"uris": [
"/Users/umutsirin/dev/koding/koding/client/ace/lib/sprites"
]
},
{
"name": "client/finder/sprites",
"active": false,
"uris": [
"/Users/umutsirin/dev/koding/koding/client/finder/lib/sprites"
]
},
{
"name": "client/home/sprites",
"active": false,
"uris": [
"/Users/umutsirin/dev/koding/koding/client/home/lib/sprites"
]
},
{
"name": "client/ide/sprites",
"active": false,
"uris": [
"/Users/umutsirin/dev/koding/koding/client/ide/lib/sprites"
]
},
{
"name": "client/app/styl",
"active": false,
"uris": [
"/Users/umutsirin/dev/koding/koding/client/app/lib/styl"
]
},
{
"name": "kd-io",
"active": true,
"uris": [
"nuclide://usirin.koding.team/home/usirin/kd-io"
]
}
]
},
"use": {
"atom-ide-diagnostics": false,
"atom-ide-diagnostics-ui": false,
"nuclide-clang": false,
"nuclide-debugger-iwdp": false,
"nuclide-debugger-native": false,
"nuclide-debugger-php": false,
"nuclide-definition-hyperclick": false,
"nuclide-hack": false,
"nuclide-hg-conflict-resolver": false,
"nuclide-hg-repository": false,
"nuclide-hhvm": false,
"nuclide-language-hack": false,
"nuclide-language-reason": false,
"nuclide-ocaml": false
}
},
"one-dark-ui": {
"tabSizing": "Minimum"
},
"one-light-ui": {},
"package-generator": {},
"pigments": {
"autocompleteScopes": [
".source.css",
".source.css.less",
".source.sass",
".source.css.scss",
".source.stylus",
".source.coffee"
],
"autocompleteSuggestionsFromValue": true,
"extendAutocompleteToColorValue": true,
"extendAutocompleteToVariables": true,
"filetypesForColorWords": [
"css",
"less",
"styl",
"stylus",
"sass",
"scss",
"coffee"
],
"sortPaletteColors": "by color"
},
"platformio-ide-terminal": {
"core": {
"autoRunCommand": "tmux a"
},
"style": {
"defaultPanelHeight": "500px",
"theme": "solarized-dark"
}
},
"prettier-atom": {
"formatOnSaveOptions": {
"enabled": true,
"scopes": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic",
"text.html.basic",
"text.html.vue",
"source.ts"
],
"showInStatusBar": true
},
"prettierOptions": {
"jsxBracketSameLine": true,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
},
"preview": {
"_analyticsUserId": "cd803356-31c3-4390-bda5-1fc37af16767"
},
"status-bar": {},
"svg-preview": {
"openPreviewAutomatically": true
},
"sync-settings": {
"removeObsoletePackages": true
},
"tabs": {
"enableVcsColoring": true
},
"terminal-plus": {
"style": {
"theme": "ocean"
}
},
"terminal-status": {},
"tool-bar": {
"iconSize": "16px",
"position": "Bottom",
"visible": false
},
"tree-view": {
"alwaysOpenExisting": true,
"focusOnReveal": false,
"hideVcsIgnoredFiles": true,
"squashDirectoryNames": true
},
"vim-mode-plus": {
"clearHighlightSearchOnResetNormalMode": true,
"clearMultipleCursorsOnEscapeInsertMode": true,
"hideTabBarOnMaximizePane": false,
"highlightSearch": true,
"ignoreCaseForSearchCurrentWord": true,
"incrementalSearch": true,
"incrementalSearchVisitDirection": "relative",
"statusBarModeStringStyle": "long",
"stayOnDelete": true,
"stayOnTransformString": true,
"stayOnYank": true,
"useSmartcaseForSearch": true,
"useSmartcaseForSearchCurrentWord": 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:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'.source.js':
'generic import':
'prefix': 'import'
'body': "import $1 from '${2:$1}'"
'import a component from components/':
'prefix': 'icomp'
'body': "import $1 from 'components/$1'"
'import a container from containers/':
'prefix': 'icont'
'body': "import $1 from 'containers/$1'"
'import a page from pages/':
'prefix': 'ipage'
'body': "import $1 from 'pages/$1'"
'import a route from routes/':
'prefix': 'iroute'
'body': "import $1 from 'routes/$1'"
'import a widget from widgets/':
'prefix': 'iwidget'
'body': "import $2 from 'widgets/$1/$2'"
'import React':
'prefix': 'ireact'
'body': "import React from 'react'"
'import styled-components':
'prefix': 'istyled'
'body': "import styled from 'styled-components'"
'export default named function':
'prefix': 'exfunc'
'body': """
export default function $1 ($2) {
return $2
}
"""
'export default function':
prefix: '_edf'
body: '''
export default function ${1:functionName}(${2:args}) {
return (
${3:// return value}
)
}
'''
'export function':
prefix: '_ef'
body: '''
export function ${1:functionName}(${2:args}) {
return (
${3:// return value}
)
}
'''
'export default class':
'prefix': 'class'
'body': """
${1:export default }class ${2:ClassName} ${3:extends ${4:ParentClass}} {
constructor(${5:options}) {
${5:super(${5:options})}
}
}
"""
'use babel with global atom':
'prefix': 'babel'
'body': """
'use babel'
/* globals atom */
"""
'new Promise':
'prefix': 'prom'
'body': """
return new Promise((resolve${1:, reject}) => {
$2
})
"""
'React stateless functional component':
prefix: 'stateless'
body: """
const $1 = ({ $2 }) => (
$3
)
export default $1
"""
/*
* 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
*/
@monoFont: 'SFMono-Regular';
@ligatureFont: 'FiraCode-Regular';
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
font-family: @monoFont;
font-size: 12px;
.list-item {
line-height: 1.75em;
}
}
.nuclide-file-tree-sidebar-uncommitted-changes,
.omnisearch-modal,
atom-panel-container.bottom {
font-family: @monoFont;
font-size: 12px;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: hsl(180, 24%, 12%);
.syntax--comment {
font-style: normal;
}
// .syntax--storage,
// .syntax--operator {
// font-family: @ligatureFont;
// text-rendering: optimizeLegibility;
// vertical-align: baseline;
// }
//
// .syntax--string.syntax--quoted,
// .syntax--string.syntax--regexp {
// -webkit-font-feature-settings: "liga" off, "calt" off;
// }
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
// border-color: red;
}
atom-text-editor.editor div.lines div:last-child .line:last-child {
.indent-guide {
box-shadow: none;
}
}
.theme-base16-tomorrow-light-theme {
atom-text-editor {
.invisible-character {
color: #eee;
}
.indent-guide {
box-shadow: inset 1px 0 #f1f2f2;
}
.syntax--comment {
color: #ccc;
}
}
}
.theme-base16-tomorrow-dark-theme {
atom-text-editor {
.invisible-character {
color: rgba(103, 106, 108, 0.3);
}
.indent-guide {
box-shadow: inset 1px 0 rgba(103, 106, 108, 0.3);
}
.syntax--comment {
color: rgba(150, 150, 150, 0.5);
}
}
}
.vim-mode-plus-ex-mode ol.list-group {
li {
padding-left: 10px;
}
}
.atom-preview-container {
.preview-text-error,
.preview-text-warning {
font-family: @monoFont;
font-size: 14px;
}
}
.tab-bar .title {
font-family: @ligatureFont;
font-size: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment