Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?

Настройки Atom. Синхронизация между несколькими устройствами.

Смотри плагин sync-settings, чтобы забрать себе все эти настройки. Или можно скачать эти файлы и заменить у себя в ~/.atom/

atom.commands.add 'atom-text-editor',
'user:insert-em-dash': (event) ->
editor = atom.workspace.getActiveTextEditor()
editor.insertText('')
'user:insert-elquo': (event) ->
editor = atom.workspace.getActiveTextEditor()
editor.insertText('»')
'atom-workspace':
'ctrl-shift-up': 'editor:move-line-up'
'ctrl-shift-down': 'editor:move-line-down'
'atom-text-editor[data-grammar="source js jsx"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'atom-workspace atom-pane':
'ctrl-alt--': 'user:insert-em-dash'
'.platform-win32 atom-text-editor':
'ctrl-alt-.': 'user:insert-elquo'
'alt-w': 'emmet:wrap-with-abbreviation'
'ctrl-shift-m': 'markdown-preview:toggle' # ХЗ отчего это не работает сразу...
'.platform-darwin atom-text-editor:not([mini])':
"shift-cmd-'": 'emmet:update-tag'
"shift-cmd-;": 'emmet:remove-tag'
'alt-w': 'emmet:wrap-with-abbreviation'
[
{
"name": "about",
"version": "1.7.2"
},
{
"name": "advanced-open-file",
"version": "0.16.5"
},
{
"name": "archive-view",
"version": "0.62.2"
},
{
"name": "atom-beautify",
"version": "0.29.17"
},
{
"name": "atom-bemmet",
"version": "2.0.0"
},
{
"name": "atom-dark-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.0",
"theme": "ui"
},
{
"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.0"
},
{
"name": "autocomplete-css",
"version": "0.14.1"
},
{
"name": "autocomplete-html",
"version": "0.7.2"
},
{
"name": "autocomplete-paths",
"version": "1.0.5"
},
{
"name": "autocomplete-plus",
"version": "2.34.2"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autoflow",
"version": "0.29.0"
},
{
"name": "autosave",
"version": "0.24.0"
},
{
"name": "background-tips",
"version": "0.26.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.4.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.4.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.43.4"
},
{
"name": "bracket-matcher",
"version": "0.85.2"
},
{
"name": "command-palette",
"version": "0.39.2"
},
{
"name": "deprecation-cop",
"version": "0.56.2"
},
{
"name": "dev-live-reload",
"version": "0.47.0"
},
{
"name": "duotone-light-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duplicate-line-or-selection",
"version": "0.9.0"
},
{
"name": "editorconfig",
"version": "2.2.0"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.22.0"
},
{
"name": "exception-reporting",
"version": "0.40.2"
},
{
"name": "find-and-replace",
"version": "0.206.1"
},
{
"name": "fuzzy-finder",
"version": "1.4.1"
},
{
"name": "git-diff",
"version": "1.2.0"
},
{
"name": "go-to-line",
"version": "0.31.2"
},
{
"name": "grammar-selector",
"version": "0.48.2"
},
{
"name": "highlight-selected",
"version": "0.12.0"
},
{
"name": "html-entities",
"version": "0.4.0"
},
{
"name": "html-to-css",
"version": "0.2.2"
},
{
"name": "image-view",
"version": "0.60.0"
},
{
"name": "incompatible-packages",
"version": "0.26.1"
},
{
"name": "keybinding-resolver",
"version": "0.35.0"
},
{
"name": "language-c",
"version": "0.54.1"
},
{
"name": "language-clojure",
"version": "0.22.1"
},
{
"name": "language-coffee-script",
"version": "0.48.2"
},
{
"name": "language-csharp",
"version": "0.14.0"
},
{
"name": "language-css",
"version": "0.41.0"
},
{
"name": "language-gfm",
"version": "0.88.0"
},
{
"name": "language-git",
"version": "0.19.0"
},
{
"name": "language-go",
"version": "0.43.1"
},
{
"name": "language-html",
"version": "0.47.1"
},
{
"name": "language-hyperlink",
"version": "0.16.1"
},
{
"name": "language-java",
"version": "0.25.0"
},
{
"name": "language-javascript",
"version": "0.125.1"
},
{
"name": "language-json",
"version": "0.18.3"
},
{
"name": "language-less",
"version": "0.30.0"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-mustache",
"version": "0.13.1"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.37.0"
},
{
"name": "language-php",
"version": "0.37.3"
},
{
"name": "language-property-list",
"version": "0.9.0"
},
{
"name": "language-pug",
"version": "0.0.19"
},
{
"name": "language-python",
"version": "0.45.1"
},
{
"name": "language-ruby",
"version": "0.70.4"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.1"
},
{
"name": "language-sass",
"version": "0.57.1"
},
{
"name": "language-shellscript",
"version": "0.25.0"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.2"
},
{
"name": "language-text",
"version": "0.7.1"
},
{
"name": "language-todo",
"version": "0.29.1"
},
{
"name": "language-toml",
"version": "0.18.1"
},
{
"name": "language-xml",
"version": "0.34.15"
},
{
"name": "language-yaml",
"version": "0.27.2"
},
{
"name": "line-ending-selector",
"version": "0.5.1"
},
{
"name": "link",
"version": "0.31.2"
},
{
"name": "markdown-preview",
"version": "0.159.6"
},
{
"name": "metrics",
"version": "1.1.3"
},
{
"name": "notifications",
"version": "0.66.1"
},
{
"name": "octocat-syntax",
"version": "1.0.1",
"theme": "syntax"
},
{
"name": "one-dark-syntax",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.9.1",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.9.1",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.1"
},
{
"name": "package-generator",
"version": "1.0.2"
},
{
"name": "pigments",
"version": "0.39.0"
},
{
"name": "project-manager",
"version": "3.3.3"
},
{
"name": "settings-view",
"version": "0.246.0"
},
{
"name": "snippets",
"version": "1.0.5"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.70.2"
},
{
"name": "status-bar",
"version": "1.7.0"
},
{
"name": "styleguide",
"version": "0.48.0"
},
{
"name": "symbols-view",
"version": "0.114.0"
},
{
"name": "sync-settings",
"version": "0.8.1"
},
{
"name": "tab-control",
"version": "0.6.9"
},
{
"name": "tabs",
"version": "0.104.1"
},
{
"name": "timecop",
"version": "0.33.2"
},
{
"name": "tree-view",
"version": "0.213.1"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "welcome",
"version": "0.36.0"
},
{
"name": "whitespace",
"version": "0.36.1"
},
{
"name": "wrap-guide",
"version": "0.39.0"
}
]
{
"bem.elementSeparator": "__",
"bem.modifierSeparator": "--",
"bem.shortElementPrefix": "_",
"css.autoInsertVendorPrefixes": "false",
"lorem.defaultLang": "ru"
}
{
"advanced-open-file": {
"createDirectories": true,
"createFileInstantly": true,
"defaultInputValue": "Project root"
},
"atom-beautify": {
"css": {
"convert_quotes": "double",
"default_beautifier": "CSScomb",
"indent_size": 2,
"predefinedConfig": "yandex",
"selector_separator_newline": true
},
"general": {
"_analyticsUserId": "996dfdcc-fa3a-407a-984c-367577043d82"
},
"html": {
"extra_liners": [
"head",
"body",
"/html",
"/body",
"@@include"
],
"indent_size": 2,
"max_preserve_newlines": 5,
"preserve_newlines": false,
"unformatted": [
"a",
"abbr",
"area",
"b",
"bdi",
"bdo",
"br",
"canvas",
"cite",
"code",
"data",
"datalist",
"del",
"dfn",
"em",
"embed",
"i",
"ins",
"kbd",
"keygen",
"map",
"mark",
"math",
"meter",
"output",
"progress",
"q",
"ruby",
"s",
"samp",
"select",
"small",
"span",
"strong",
"sub",
"sup",
"template",
"time",
"u",
"var",
"wbr",
"text",
"acronym",
"big",
"dt",
"ins",
"small",
"strike",
"tt"
],
"wrap_attributes_indent_size": 2
},
"less": {
"convert_quotes": "single",
"default_beautifier": "CSScomb",
"indent_size": 2
}
},
"autosave": {
"enabled": true
},
"color-picker": {
"automaticReplace": true,
"preferredFormat": "HEX"
},
"core": {
"closeEmptyWindows": false,
"disabledPackages": [
"linter-htmlhint",
"linter-less",
"open-in-browser",
"react",
"autocomplete-html",
"autocomplete-css",
"language-c",
"language-clojure",
"language-csharp",
"language-go",
"language-java",
"language-make",
"language-objective-c",
"language-perl",
"language-python",
"language-ruby",
"language-ruby-on-rails",
"language-toml",
"styleguide",
"welcome",
"bookmarks",
"archive-view",
"background-tips",
"language-coffee-script",
"language-mustache",
"language-sql",
"language-yaml"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"node_modules"
],
"packagesWithKeymapsDisabled": [
"spell-check"
],
"projectHome": "d:\\projects\\",
"telemetryConsent": "limited",
"themes": [
"one-light-ui",
"octocat-syntax"
]
},
"editor": {
"fontSize": 15,
"indent_style": "auto",
"invisibles": {
"tab": ""
},
"showInvisibles": true,
"softTabs": false,
"softWrap": true,
"tabType": "soft"
},
"emmet": {
"extensionsPath": "~/.atom"
},
"exception-reporting": {
"userId": "cb18db5e-2e43-6f24-a632-340fa62b36cc"
},
"file-icons": {
"forceShow": true,
"onChanges": true
},
"git-diff-details": {
"enableSyntaxHighlighting": true
},
"highlight-selected": {
"highlightBackground": true,
"lightTheme": true,
"minimumLength": 2
},
"html-to-css": {
"bem-group": true,
"indent-characters": " "
},
"line-ending-selector": {
"defaultLineEnding": "LF"
},
"open-in-browsers": {
"Edge": true
},
"package-sync": {
"createOnChange": true,
"forceOverwrite": true
},
"pigments": {
"dismissableReloadNotifications": false,
"sortPaletteColors": "by name"
},
"pretty-json": {
"prettifyOnSaveJSON": true
},
"project-manager": {
"alwaysOpenInSameWindow": true,
"sortBy": "last modified"
},
"react": {
"disableAutoClose": true
},
"spell-check": {
"addKnownWords": true,
"knownWords": [
"css",
"less",
"jpg",
"jpeg",
"gif",
"png",
"svg",
"src",
"img",
"style",
"block",
"mod",
"js",
"Stylelint",
"npm",
"gh",
"jade",
"репозиторий",
"минифицированый",
"коммит",
"автообновлений",
"Автообновление",
"bem"
],
"locales": [
"ru-RU",
"en-US"
]
},
"split-diff": {
"diffWords": true,
"ignoreWhitespace": true,
"leftEditorColor": "red",
"rightEditorColor": "green",
"syncHorizontalScroll": true
},
"sync-settings": {
"extraFiles": [
"preferences.json",
"snippets.json",
"_readme.md"
]
},
"tab-control": {
"autoSaveChanges": true
},
"tree-view": {
"hideIgnoredNames": true
},
"welcome": {
"showOnStartup": false
}
}
# ВНИМАНИЕ!
# У меня этот файл не используется, т.к. в ~/.atom имеется файл snippets.json,
# (настройки Emmet и Atom), именно он и подхватывается Атомом на замену
# snippets.cson.
# Свои сниппеты нужно писать в snippets.json.
# Увы, синхронизатор настроек не может работать с файлами в подпапках ~/.atom,
# т.к. синхронизация происходит через gist и там не может быть папок. Поэтому я
# не могу вынести файл настройки Emmet в подпапку и не смешивать настройки Emmet
# и Atom.
# Се ля ви, ять.
#
#
#
# Your snippets
#
# 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
{
"html": {
"filters": "html, bem",
"snippets": {
"blq": "<blockquote>${1:}</blockquote>",
"_ph": "http://placehold.it/${1:350}x${2:150}",
"_pk": "http://placekitten.com/${1:350}/${2:150}"
}
},
"css": {
"snippets": {
"c1": "\n\n\n\n\n//------------------------------------------------------------------------------\\\n//\t${1:Секция}\n\\\//------------------------------------------------------------------------------\n",
"poen": "pointer-events: none;",
"bgra": "background-color: rgba(${1:0,0,0,.5});",
"var": "var(--${var_name})",
"obj": "object-fit: cover;",
"df": "display: flex;",
"_ph": "http://placehold.it/${1:350}x${2:150}",
"_pk": "http://placekitten.com/${1:350}/${2:150}"
},
"jsx": {
"filters": "jsx, html",
"extends": "html",
"profile": "xml"
}
},
".text.html.basic": {
"Lorem Pixel image": {
"prefix": "_lp",
"body": "http://lorempixel.com/${1:350}/${2:200}/abstract",
"description": "http://lorempixel.com/${1:350}/${2:200}/abstract"
},
"Place Kitten image": {
"prefix": "_lpk",
"body": "http://placekitten.com/${1:350}/${2:200}",
"description": "http://placekitten.com/${1:350}/${2:200}"
}
},
".source.js": {
"console.log": {
"prefix": "_log",
"body": "console.log(${1:\"crash\"});$2",
"description": "Output data to the console"
}
}
}
atom-text-editor.editor {
// Небольшое изменение прозрачности для невидимых символов
.invisible-character.leading-whitespace,
.invisible-character.eol {
color: rgba(51, 51, 51, 0.2);
}
// Подсветка открывающей/закрывающей скобок
.bracket-matcher .region {
background-color: #D5F7D3;
border-color: #9EE49B;
}
// Цвет выделенного текста
.selection .region {
background-color: #D5F7D3;
}
// Фоновый цвет линии, в которой находится курсор
.line.cursor-line, .line-number.cursor-line-no-selection {
background-color: rgba(0,0,0,0.07);
}
// Выделение в модальных окнах (поиск по файлам, проекты ect.)
.is-focused .selection .region {
background-color: #BDF4C6 !important;
}
// Подсветка идентичных выделенному фрагментов — плагин https://atom.io/packages/highlight-selected
.highlights .highlight-selected.light-theme.background .region {
background-color: #D5F7D3;
border-color: #9EE49B;
}
.gutter .line-number.git-line-modified {
border-left-color: #E02828;
}
.gutter .line-number.git-line-added {
border-left-color: #28E042;
}
}
// Плагин https://atom.io/packages/indent-guide-improved (если установлен)
.indent-guide-improved {
background-color: rgba(51, 51, 51, 0.1);
&.indent-guide-stack {
background-color: rgba(51, 51, 51, 0.2);
&.indent-guide-active {
background-color: rgba(51, 51, 51, 0.6);
}
}
}

Gurylev commented Nov 6, 2016

Се ля ви, ять.

Это превосходно:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment