Skip to content

Instantly share code, notes, and snippets.

@alxtz
Last active November 10, 2017 11:59
Show Gist options
  • Save alxtz/ba97d55c12641068ee06f79c92e6fbfa to your computer and use it in GitHub Desktop.
Save alxtz/ba97d55c12641068ee06f79c92e6fbfa 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()}"
# 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:
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings
#
# 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
# vim-mode-plus <z a> -> <space>
'atom-text-editor.vim-mode-plus:not(.insert-mode):not(.operator-pending-mode)':
'space': 'vim-mode-plus:toggle-fold'
# advanced-open-file <cmd alt o> -> <cmd o>
'.platform-darwin atom-workspace': {
'cmd-o': 'advanced-open-file:toggle',
'cmd-alt-o': 'unset!'
}
# default-open-project-folder <cmd o> -> <cmd alt o>
# core-next-pane <cmd alt left> -> <left>
'body': {
"left": "pane:show-previous-item",
"right": "pane:show-next-item",
# "up": "unset!",
# "down": "unset!",
'cmd-alt-o': 'application:open',
'cmd-left': 'window:focus-pane-on-left',
'cmd-right': 'window:focus-pane-on-right',
'shift-shift': 'core:save'
}
'atom-text-editor.vim-mode-plus:not(.insert-mode)': {
'left': 'unset!',
'right': 'unset!',
'up': 'unset!',
'down': 'unset!'
}
# disable tree-view arrow key
'.tree-view': {
'left': 'unset!',
'right': 'unset!',
'h': 'unset!',
'j': 'unset!',
'k': 'unset!',
'l': 'unset!'
}
# for emmet support in jsx
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
# unbind the default cmd-left
'atom-text-editor':
'cmd-left': 'unset!'
'cmd-right': 'unset!'
{
"alxtz": "myGist"
}
[
{
"name": "about",
"version": "1.7.6"
},
{
"name": "advanced-open-file",
"version": "0.16.7"
},
{
"name": "aligner",
"version": "1.2.4"
},
{
"name": "aligner-javascript",
"version": "1.3.0"
},
{
"name": "aligner-python",
"version": "1.1.0"
},
{
"name": "an-old-hope-syntax",
"version": "1.0.4",
"theme": "syntax"
},
{
"name": "archive-view",
"version": "0.63.3"
},
{
"name": "ariake-dark-syntax",
"version": "0.1.3",
"theme": "syntax"
},
{
"name": "atom-beautify",
"version": "0.30.6"
},
{
"name": "atom-bracket-highlight",
"version": "0.3.2"
},
{
"name": "atom-brackets-glow",
"version": "0.6.0"
},
{
"name": "atom-clock",
"version": "0.1.15"
},
{
"name": "atom-css-class-checker",
"version": "0.4.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.5.4"
},
{
"name": "atom-ignore",
"version": "0.2.0"
},
{
"name": "atom-jinja2",
"version": "0.6.0"
},
{
"name": "atom-keyboard-macros",
"version": "0.11.0"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.0",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "1.0.7",
"theme": "syntax"
},
{
"name": "atom-sublime-monokai-syntax",
"version": "0.4.4",
"theme": "syntax"
},
{
"name": "atom-terminal",
"version": "0.8.0"
},
{
"name": "atomify",
"version": "0.6.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.3"
},
{
"name": "autocomplete-css",
"version": "0.17.3"
},
{
"name": "autocomplete-emojis",
"version": "2.5.0"
},
{
"name": "autocomplete-html",
"version": "0.8.1"
},
{
"name": "autocomplete-paths",
"version": "2.12.1"
},
{
"name": "autocomplete-plus",
"version": "2.35.8"
},
{
"name": "autocomplete-python",
"version": "1.10.3"
},
{
"name": "autocomplete-snippets",
"version": "1.11.1"
},
{
"name": "autoflow",
"version": "0.29.0"
},
{
"name": "autohide-tree-view",
"version": "0.25.1"
},
{
"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": "bold16-syntax",
"version": "0.3.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.44.4"
},
{
"name": "bracket-matcher",
"version": "0.87.3"
},
{
"name": "bracket-matcher-highlight",
"version": "0.5.0"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "cake-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "cobalt2-syntax",
"version": "0.5.1",
"theme": "syntax"
},
{
"name": "color-picker",
"version": "2.2.5"
},
{
"name": "colorblind-wombat-dark-syntax",
"version": "0.6.0",
"theme": "syntax"
},
{
"name": "command-palette",
"version": "0.41.0"
},
{
"name": "comment-headers",
"version": "2.15.0"
},
{
"name": "dalek",
"version": "0.2.1"
},
{
"name": "dash-ui",
"version": "0.4.4",
"theme": "ui"
},
{
"name": "deprecation-cop",
"version": "0.56.7"
},
{
"name": "dev-live-reload",
"version": "0.47.1"
},
{
"name": "double-tag",
"version": "1.1.0"
},
{
"name": "duotone-dark-earth-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duotone-dark-forest-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duotone-dark-sea-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duotone-dark-space-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duotone-dark-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duotone-light-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "emmet-atom-plugin",
"version": "0.0.1",
"apmInstallSource": {
"type": "git",
"source": "emmetio/atom-plugin",
"sha": "45a43c4b3547618b90dda069cfcfb2e7d9e0bd14"
}
},
{
"name": "encoding-selector",
"version": "0.23.4"
},
{
"name": "es6-javascript",
"version": "1.0.0"
},
{
"name": "exception-reporting",
"version": "0.41.4"
},
{
"name": "fancy-bracket-matcher",
"version": "2.1.0"
},
{
"name": "file-icons",
"version": "2.1.13"
},
{
"name": "find-and-replace",
"version": "0.212.0"
},
{
"name": "font-viewer",
"version": "0.3.1"
},
{
"name": "fuzzy-finder",
"version": "1.5.8"
},
{
"name": "git-control",
"version": "0.9.0"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "git-diff-details",
"version": "1.4.0"
},
{
"name": "git-log",
"version": "0.4.1"
},
{
"name": "git-plus",
"version": "7.10.0"
},
{
"name": "github",
"version": "0.5.0"
},
{
"name": "gloom",
"version": "0.6.4",
"theme": "syntax"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "goto-definition",
"version": "1.3.4"
},
{
"name": "grammar-selector",
"version": "0.49.5"
},
{
"name": "grammar-token-limit",
"version": "0.1.1"
},
{
"name": "gruvbox-plus-syntax",
"version": "1.3.1",
"theme": "syntax"
},
{
"name": "hey-pane",
"version": "1.1.0"
},
{
"name": "highlight-column",
"version": "0.5.4"
},
{
"name": "highlight-line",
"version": "0.12.0"
},
{
"name": "html-outliner",
"version": "0.1.1"
},
{
"name": "html-to-css",
"version": "0.2.2"
},
{
"name": "ide-html",
"version": "0.4.1"
},
{
"name": "ide-typescript",
"version": "0.6.2"
},
{
"name": "ide-vue",
"version": "0.1.7"
},
{
"name": "image-view",
"version": "0.62.3"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "indent-guide-improved",
"version": "1.4.13"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "jQuery",
"version": "1.2.5"
},
{
"name": "keybinding-resolver",
"version": "0.38.0"
},
{
"name": "keyboard-scroll",
"version": "0.7.0"
},
{
"name": "language-babel",
"version": "2.77.3"
},
{
"name": "language-c",
"version": "0.58.1"
},
{
"name": "language-clojure",
"version": "0.22.4"
},
{
"name": "language-coffee-script",
"version": "0.48.9"
},
{
"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.4"
},
{
"name": "language-hyperlink",
"version": "0.16.2"
},
{
"name": "language-java",
"version": "0.27.4"
},
{
"name": "language-javascript",
"version": "0.127.3"
},
{
"name": "language-javascript-jsx",
"version": "0.3.7"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-less",
"version": "0.33.0"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-markdown",
"version": "0.25.1"
},
{
"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-vue",
"version": "0.23.1"
},
{
"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.0.0"
},
{
"name": "linter-eslint",
"version": "8.4.0"
},
{
"name": "linter-ui-default",
"version": "1.6.10"
},
{
"name": "livereload",
"version": "0.4.4"
},
{
"name": "markdown-preview",
"version": "0.159.13"
},
{
"name": "metrics",
"version": "1.2.6"
},
{
"name": "newbound-dark-syntax",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "newbound-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "newbound-warm-syntax",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "nord-atom-syntax",
"version": "0.9.1",
"theme": "syntax"
},
{
"name": "notifications",
"version": "0.69.0"
},
{
"name": "notifications-plus-confetti",
"version": "0.1.4"
},
{
"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": "one-vibrancy",
"version": "0.2.0"
},
{
"name": "open-on-github",
"version": "1.2.1"
},
{
"name": "package-generator",
"version": "1.1.1"
},
{
"name": "pigments",
"version": "0.40.2"
},
{
"name": "pristine-ui",
"version": "1.1.10",
"theme": "ui"
},
{
"name": "pubster-syntax",
"version": "3.0.2",
"theme": "syntax"
},
{
"name": "python-tools",
"version": "0.6.9"
},
{
"name": "quote-words",
"version": "0.2.0"
},
{
"name": "ramda-syntax",
"version": "1.0.4",
"theme": "syntax"
},
{
"name": "sass-autocompile",
"version": "0.13.3"
},
{
"name": "sci-fi-syntax",
"version": "0.3.0",
"theme": "syntax"
},
{
"name": "set-syntax",
"version": "0.4.0"
},
{
"name": "settings-view",
"version": "0.251.5"
},
{
"name": "smart-quotes-plus",
"version": "2.1.0"
},
{
"name": "smart-tab-name",
"version": "1.0.5"
},
{
"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.1"
},
{
"name": "status-bar",
"version": "1.8.11"
},
{
"name": "structure-view",
"version": "0.1.7"
},
{
"name": "styleguide",
"version": "0.49.6"
},
{
"name": "swackets",
"version": "0.35.0"
},
{
"name": "symbols-view",
"version": "0.117.1"
},
{
"name": "sync-settings",
"version": "0.8.3"
},
{
"name": "tabs",
"version": "0.107.1"
},
{
"name": "term",
"version": "0.2.4"
},
{
"name": "term3",
"version": "0.22.1"
},
{
"name": "timecop",
"version": "0.36.0"
},
{
"name": "toggle-quotes",
"version": "1.0.1"
},
{
"name": "tree-view",
"version": "0.217.8"
},
{
"name": "tree-view-autoresize",
"version": "2.2.0"
},
{
"name": "tree-view-git-branch",
"version": "0.1.2"
},
{
"name": "tree-view-git-status",
"version": "1.4.0"
},
{
"name": "update-package-dependencies",
"version": "0.12.0"
},
{
"name": "vim-mode-plus",
"version": "1.16.0"
},
{
"name": "welcome",
"version": "0.36.5"
},
{
"name": "whitespace",
"version": "0.37.2"
},
{
"name": "wrap-guide",
"version": "0.40.2"
},
{
"name": "youtube-pane",
"version": "2.0.0"
}
]
{
"advanced-open-file": {
"createDirectories": true,
"createFileInstantly": true
},
"aligner": {
"alignComments": true
},
"aligner-javascript": {
",-leftSpace": true,
":-leftSpace": true
},
"aligner-scss": {
":-alignment": "left",
":-leftSpace": true
},
"atom-beautify": {
"general": {
"beautifyEntireFileOnSave": false
},
"html": {
"brace_style": "expand",
"end_with_newline": true,
"indent_inner_html": true
},
"js": {},
"sass": {},
"scss": {
"beautify_on_save": true,
"default_beautifier": "CSScomb"
}
},
"atom-clock": {
"dateFormat": "MMMM Do, dddd, h:mm a",
"locale": "zh_TW"
},
"atom-css-class-checker": {},
"atom-ide-ui": {
"use": {
"atom-ide-diagnostics-ui": false
}
},
"atom-ignore": {},
"autocomplete-emojis": {
"enableMarkdownEmojis": false
},
"autocomplete-python": {
"useKite": false
},
"autosave": {
"enabled": true
},
"bracket-matcher": {
"autocompleteCharacters": [
"()",
"[]",
"{}",
"\"\"",
"''",
"``",
"“”",
"‘’",
"«»",
"<>"
]
},
"bracket-matcher-highlight": {
"autocompleteCharacters": [
"()",
"[]",
"{}",
"\"\"",
"''",
"``",
"“”",
"‘’",
"«»",
"<>"
]
},
"core": {
"audioBeep": false,
"automaticallyUpdate": false,
"closeDeletedFileTabs": true,
"disabledPackages": [
"fancy-bracket-matcher",
"highlight-column",
"atom-keyboard-macros",
"hey-pane",
"autocomplete-emojis",
"wrap-guide",
"term",
"atom-terminal",
"busy-signal",
"term3",
"language-gfm",
"git-diff-details",
"git-plus",
"git-log",
"git-control",
"language-javascript-jsx",
"youtube-pane",
"atomify",
"grammar-token-limit",
"atom-ignore",
"html-outliner",
"swackets",
"smart-tab-name",
"tree-view-git-branch",
"tree-view-git-status",
"autosave",
"emmet-atom-plugin",
"toggle-quotes",
"quote-words",
"smart-quotes-plus",
"autohide-tree-view",
"github",
"atom-clock",
"git-diff",
"open-on-github",
"atom-css-class-checker",
"font-viewer",
"structure-view",
"atom-beautify",
"atom-bracket-highlight",
"atom-brackets-glow",
"bracket-matcher",
"keyboard-scroll",
"one-vibrancy",
"ide-html",
"atom-ide-ui",
"linter-ui-default",
"ide-vue",
"ide-typescript",
"linter",
"linter-eslint"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"desktop.ini",
"node_modules",
"package.json",
"package-lock.json",
".babelrc",
".gitignore"
],
"packagesWithKeymapsDisabled": [],
"restorePreviousWindowsOnStart": "no",
"telemetryConsent": "no",
"themes": [
"pristine-ui",
"bold16-syntax"
],
"titleBar": "custom-inset",
"warnOnLargeFileLimit": 0.3
},
"double-tag": {},
"editor": {
"fontFamily": "Operator Mono",
"fontSize": 16,
"invisibles": {},
"softWrap": true,
"softWrapHangingIndent": 2
},
"exception-reporting": {
"userId": "09673361-27d4-4e72-a71a-e2ac1655b489"
},
"git-diff": {
"showIconsInEditorGutter": true
},
"git-log": {
"fontScale": 0.8
},
"grammar-token-limit": {
"maxTokensPerLine": 1000
},
"hey-pane": {
"expandedWidth": 100
},
"highlight-column": {
"enabled": false,
"lineMode": true
},
"highlight-line": {
"enableBackgroundColor": false,
"enableUnderline": true,
"hideHighlightOnSelect": true
},
"linter-eslint": {},
"linter-ui-default": {},
"livereload": {
"applyCSSLive": false
},
"one-dark-ui": {
"fontSize": 12
},
"one-vibrancy": {},
"open-on-github": {},
"pigments": {},
"pristine-ui": {
"fontSize": 11,
"hideDockButtons": true
},
"sass-autocompile": {
"autoHidePanelDelay": 100,
"compileCompressed": false,
"compileExpanded": true,
"compileOnSave": false,
"compilePartials": true,
"indentWidth": 4,
"showAdditionalCompilationInfo": false
},
"split-diff": {
"colors": {},
"hideTreeView": true,
"ignoreWhitespace": true
},
"status-bar": {
"fullWidth": false
},
"sync-settings": {},
"tabs": {
"enableVcsColoring": true
},
"term3": {
"autoRunCommand": "source ~/.zshrcTerm3; clear",
"colors": {
"background": "#383d43",
"brightBlack": "#383d43"
},
"cursorBlink": false,
"fontFamily": "Fira mono for Powerline",
"fontSize": "19"
},
"tree-ignore": {},
"tree-view": {
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true,
"showOnRightSide": true
},
"tree-view-autoresize": {
"animationMilliseconds": 75,
"delayMilliseconds": 10,
"padding": 10
},
"vim-mode-plus": {
"notifiedCoffeeScriptNoLongerSupportedToExtendVMP": true,
"statusBarModeStringStyle": "long"
},
"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
/*
* 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;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: hsl(180, 24%, 12%);
}
// style UI elements inside atom-text-editor
atom-text-editor .cursor {
// border-color: red;
}
// html, html * {
// background: rgba(0, 0, 0, 0) !important;
// }
//
// atom-pane, atom-panel, atom-notification {
// background: rgba(0, 0, 0, 0.5) !important;
// }
//
// atom-overlay > * {
// background: rgba(0, 0, 0, 0.9) !important;
// }
//
// atom-text-editor {
// .cursor-line {
// background-color: rgba(0, 0, 0, 0.2) !important;
// }
// .selection .region {
// background-color: rgba(0, 0, 0, 0.2) !important;
// }
// .gutter {
// background-color: rgba(0, 0, 0, 0) !important;
// }
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment