Skip to content

Instantly share code, notes, and snippets.

@smlombardi
Last active September 30, 2016 20:40
Show Gist options
  • Save smlombardi/7f99df52b9bc1de79f8b69e4b4dd00b4 to your computer and use it in GitHub Desktop.
Save smlombardi/7f99df52b9bc1de79f8b69e4b4dd00b4 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 make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
# atom.workspaceView.eachEditorView (editorView) ->
# editor = editorView.getEditor()
# if path.extname(editor.getPath()) is '.md'
# editor.setSoftWrap(true)
atom.commands.add 'atom-text-editor',
'editor:insert-nbsp': (event) ->
editor = @getModel()
editor.insertText(' ')
atom.commands.add 'atom-text-editor',
'editor:insert-br': (event) ->
editor = @getModel()
editor.insertText('<br>')
process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":")
# Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors
# to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# 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:
#
# '.editor':
# 'enter': 'editor:newline'
#
# '.workspace':
# 'ctrl-P': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
'atom-workspace':
'alt-shift-h': 'pigments:convert-to-hex'
'alt-shift-g': 'pigments:convert-to-rgba'
'atom-workspace atom-text-editor:not([mini])':
'alt-enter': 'editor:insert-br'
'alt-space': 'editor:insert-nbsp'
'ctrl-u': 'sftp-deployment:uploadCurrentFile'
'ctrl-alt-u': 'sftp-deployment:uploadOpenFiles'
'shift-enter': 'custom:semicolonize'
#
# 'atom-workspace atom-text-editor:not([mini])':
# 'cmd-/': 'editor:toggle-line-comments'
# Stop emmet from hijacking tab from snippets and autocomplete
# 'atom-text-editor.autocomplete-active[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': 'autocomplete-plus:confirm'
'atom-text-editor[data-grammar="text html angular"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
[
{
"name": "about",
"version": "1.7.0"
},
{
"name": "angularjs",
"version": "0.3.5"
},
{
"name": "archive-view",
"version": "0.61.1"
},
{
"name": "atom-beautify",
"version": "0.29.13"
},
{
"name": "atom-bootstrap3",
"version": "1.2.12"
},
{
"name": "atom-dark-syntax",
"version": "0.27.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.52.0",
"theme": "ui"
},
{
"name": "atom-light-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.44.0",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "0.4.6",
"theme": "syntax"
},
{
"name": "atom-material-ui",
"version": "1.3.6",
"theme": "ui"
},
{
"name": "atom-typescript",
"version": "10.1.7"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.0"
},
{
"name": "autocomplete-css",
"version": "0.11.2"
},
{
"name": "autocomplete-html",
"version": "0.7.2"
},
{
"name": "autocomplete-paths",
"version": "1.0.2"
},
{
"name": "autocomplete-plus",
"version": "2.31.1"
},
{
"name": "autoflow",
"version": "0.27.0"
},
{
"name": "autoprefixer",
"version": "3.3.0"
},
{
"name": "autosave",
"version": "0.23.1"
},
{
"name": "background-tips",
"version": "0.26.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.2.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.2.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.42.0"
},
{
"name": "bracket-matcher",
"version": "0.82.1"
},
{
"name": "change-case"
},
{
"name": "command-palette",
"version": "0.38.0"
},
{
"name": "css-comb",
"version": "2.5.0"
},
{
"name": "dev-live-reload",
"version": "0.47.0"
},
{
"name": "double-tag",
"version": "0.4.0"
},
{
"name": "duotone-light-syntax",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "editorconfig",
"version": "1.4.1"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.22.0"
},
{
"name": "escape-utils",
"version": "0.5.3"
},
{
"name": "exception-reporting",
"version": "0.40.0"
},
{
"name": "file-icons",
"version": "1.7.19"
},
{
"name": "find-and-replace",
"version": "0.201.1"
},
{
"name": "firewatch-syntax",
"version": "1.0.1",
"theme": "syntax"
},
{
"name": "fuzzy-finder",
"version": "1.4.0"
},
{
"name": "git-diff",
"version": "1.1.0"
},
{
"name": "git-plus",
"version": "5.18.0"
},
{
"name": "github-atom-light-syntax",
"version": "0.2.0",
"theme": "syntax"
},
{
"name": "go-to-line",
"version": "0.31.0"
},
{
"name": "grammar-selector",
"version": "0.48.2"
},
{
"name": "gruvbox-plus-syntax",
"version": "1.2.5",
"theme": "syntax"
},
{
"name": "image-view",
"version": "0.59.0"
},
{
"name": "incompatible-packages",
"version": "0.26.1"
},
{
"name": "keybinding-resolver",
"version": "0.35.0"
},
{
"name": "language-babel",
"version": "2.42.3"
},
{
"name": "language-c",
"version": "0.52.1"
},
{
"name": "language-clojure",
"version": "0.21.0"
},
{
"name": "language-coffee-script",
"version": "0.47.2"
},
{
"name": "language-csharp",
"version": "0.12.1"
},
{
"name": "language-css",
"version": "0.37.1"
},
{
"name": "language-gfm",
"version": "0.88.0"
},
{
"name": "language-git",
"version": "0.15.0"
},
{
"name": "language-go",
"version": "0.42.1"
},
{
"name": "language-html",
"version": "0.45.1"
},
{
"name": "language-hyperlink",
"version": "0.16.0"
},
{
"name": "language-java",
"version": "0.23.0"
},
{
"name": "language-javascript",
"version": "0.119.0"
},
{
"name": "language-json",
"version": "0.18.2"
},
{
"name": "language-less",
"version": "0.29.5"
},
{
"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.2"
},
{
"name": "language-property-list",
"version": "0.8.0"
},
{
"name": "language-python",
"version": "0.45.0"
},
{
"name": "language-ruby",
"version": "0.69.0"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.0"
},
{
"name": "language-sass",
"version": "0.56.0"
},
{
"name": "language-shellscript",
"version": "0.22.4"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.23.0"
},
{
"name": "language-svg",
"version": "0.9.0"
},
{
"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.9"
},
{
"name": "language-yaml",
"version": "0.26.0"
},
{
"name": "less-than-slash",
"version": "0.16.0"
},
{
"name": "line-ending-selector",
"version": "0.5.0"
},
{
"name": "link",
"version": "0.31.1"
},
{
"name": "linter",
"version": "1.11.16"
},
{
"name": "linter-eslint",
"version": "7.3.2"
},
{
"name": "linter-htmlhint",
"version": "1.3.0"
},
{
"name": "linter-jsonlint",
"version": "1.3.0"
},
{
"name": "linter-less",
"version": "2.6.0"
},
{
"name": "linter-stylelint",
"version": "3.3.1"
},
{
"name": "linter-tslint",
"version": "0.11.1"
},
{
"name": "livestyle-atom",
"version": "0.2.7"
},
{
"name": "markdown-preview",
"version": "0.158.0"
},
{
"name": "metrics",
"version": "1.0.0"
},
{
"name": "notifications",
"version": "0.65.1"
},
{
"name": "nucleus-dark-ui",
"version": "0.10.7",
"theme": "ui"
},
{
"name": "one-dark-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.6.0",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.6.0",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.0"
},
{
"name": "package-generator",
"version": "1.0.0"
},
{
"name": "pigments",
"version": "0.36.0"
},
{
"name": "platformio-ide-terminal",
"version": "2.2.0"
},
{
"name": "project-manager",
"version": "3.2.3"
},
{
"name": "script",
"version": "3.10.1"
},
{
"name": "selection-counter",
"version": "1.0.0"
},
{
"name": "seti-icons",
"version": "1.3.4"
},
{
"name": "settings-view",
"version": "0.242.2"
},
{
"name": "snippet-generator",
"version": "0.3.2"
},
{
"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": "spell-check",
"version": "0.68.2"
},
{
"name": "standard-formatter",
"version": "2.5.0"
},
{
"name": "status-bar",
"version": "1.4.1"
},
{
"name": "stylefmt",
"version": "3.2.0"
},
{
"name": "styleguide",
"version": "0.47.0"
},
{
"name": "symbols-view",
"version": "0.113.1"
},
{
"name": "sync-settings",
"version": "0.7.2"
},
{
"name": "tabs",
"version": "0.101.0"
},
{
"name": "tag",
"version": "0.4.0"
},
{
"name": "timecop",
"version": "0.33.2"
},
{
"name": "title-case",
"version": "0.4.0"
},
{
"name": "tree-view",
"version": "0.209.3"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "welcome",
"version": "0.35.1"
},
{
"name": "whitespace",
"version": "0.33.0"
}
]
{
"atom-alignment": {
"alignBy": [
":",
"{",
"=>",
":=",
"=",
"rgb"
]
},
"atom-beautify": {
"css": {
"default_beautifier": "CSScomb",
"preserve_newlines": true
},
"general": {
"_analyticsUserId": "bd07d23e-4e45-4d60-93c3-542f8972d586"
},
"html": {
"unformatted": [
"a",
"span",
"img",
"bdo",
"em",
"strong",
"dfn",
"code",
"samp",
"kbd",
"var",
"cite",
"abbr",
"acronym",
"q",
"sub",
"sup",
"tt",
"i",
"b",
"big",
"small",
"u",
"s",
"strike",
"font",
"ins",
"del",
"pre",
"address",
"dt",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"li"
]
},
"js": {
"end_with_newline": true,
"space_after_anon_function": true
},
"json": {},
"sass": {},
"scss": {
"default_beautifier": "CSScomb"
}
},
"atom-color-highlight": {
"excludedGrammars": [
"text.html.basic",
"text.xml",
"source.json",
"source.plist",
"source.js"
],
"hideMarkersInComments": true
},
"atom-material-ui": {
"colors": {
"abaseColor": "#5f7d8c",
"accentColor": "#ffc200",
"paintCursor": true,
"predefinedColor": "Blue Grey"
},
"tabs": {
"compactTabs": true,
"noTabMinWidth": true,
"tintedTabBar": true
},
"treeView": {
"blendTabs": true,
"compactList": true
},
"ui": {
"panelContrast": true
}
},
"autoclose-html": {
"makNeverCloseeSelfClosing": false
},
"autocomplete-plus": {
"confirmCompletion": "enter",
"strictMatching": true,
"useAlternateScoring": true
},
"autoprefixer": {
"browsers": [
"last 2 versions"
]
},
"build": {
"saveOnBuild": true
},
"color-picker": {
"abbreviateValues": true,
"automaticReplace": true,
"preferredFormat": "HEX"
},
"core": {
"closeEmptyWindows": false,
"disabledPackages": [
"wrap-guide",
"preview-tabs",
"autocomplete-snippets",
"gulp-control",
"deprecation-cop",
"linter-jscs",
"linter-jshint"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"node_modules"
],
"telemetryConsent": "limited",
"themes": [
"nucleus-dark-ui",
"gruvbox-plus-syntax"
],
"useCustomTitleBar": true
},
"css-comb": {},
"editor": {
"fontFamily": "SFMono-Light",
"invisibles": {},
"lineHeight": 1.7,
"nonWordCharacters": "/\\\\()\\\"':,.;<>~!^&*|+=[]{}`?",
"scrollPastEnd": true,
"softWrap": true
},
"emmet": {
"useEmmetComments": false
},
"enhanced-package-list": {
"sourceFilter": "user"
},
"exception-reporting": {
"userId": "bad15ff0-cc2f-44a5-9ac5-16817f3464fa"
},
"file-icons": {},
"fonts": {},
"fuzzy-finder": {
"useAlternateScoring": true
},
"gruvbox-plus-syntax": {},
"isotope-light-ui": {
"compactLayout": false,
"customBackgroundColor": true,
"fontFamily": "Roboto",
"fontWeight": "Regular",
"gutterStyle": false
},
"isotope-ui": {
"colorTreeSelection": true,
"compactLayout": true,
"customBackgroundColor": true,
"customBackgroundColorPicker": {
"alpha": 1,
"blue": 12,
"green": 14,
"red": 12
},
"fontWeight": "Regular",
"spaciousMode": false
},
"linter": {
"errorPanelHeight": 24,
"lintOnFlyInterval": 1500,
"showErrorTabLine": true,
"statusBar": "Show all errors"
},
"linter-eslint": {},
"linter-htmlhint": {
"htmlhintExecutablePath": "/usr/local/bin/htmlhint"
},
"linter-js-standard": {},
"linter-jscs": {
"executablePath": "/usr/local/bin/jscs"
},
"linter-jshint": {},
"linter-scss-lint": {
"executablePath": "/usr/local/bin/scss-lint",
"scssLintExcludedLinters": [
"EmptyLineBetweenBlocks",
"Indentation",
"SingleLinePerSelector",
"SpaceAfterPropertyColon",
"SpaceBeforeBrace",
"PropertySortOrder",
"SpaceAfterPropertyName",
"CapitalizationInSelector",
"UnnecessaryMantissa",
"SelectorDepth",
"StringQuotes",
"LeadingZero",
"HexNotation",
"HexLength"
]
},
"linter-stylelint": {
"useStandard": true
},
"livestyle-atom": {
"analyzer": {
"notify": false,
"notifyCampaign": false
}
},
"metrics": {
"userId": "598afc49a0ee4383bacc66385934c75cccf5a730"
},
"minimap": {
"plugins": {
"cursorline": true,
"cursorlineDecorationsZIndex": 0,
"pigments": true,
"pigmentsDecorationsZIndex": 0
}
},
"one-dark-ui": {},
"one-light-ui": {},
"pigments": {
"ignoredScopes": [
"\\.comment",
"\\.text\\.html",
"\\.source\\.js"
],
"markerType": "native-underline",
"mergeColorDuplicates": true
},
"platformio-ide-terminal": {
"style": {
"fontFamily": "SFMono-Medium",
"fontSize": "14",
"theme": "solarized-dark"
}
},
"project-manager": {
"closeCurrent": true
},
"project-palette-finder": {},
"standard-formatter": {
"style": "semi-standard"
},
"sync-settings": {
"quietUpdateCheck": true
},
"tabs": {
"usePreviewTabs": true
},
"tree-view": {
"hideIgnoredNames": 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'
#
'.source.js':
'Console Log':
'prefix': 'csl'
'body': 'console.log($1);'
'Log Debug':
'prefix': 'ldb'
'body': '$log.debug($1);'
'Angular Module':
'prefix': 'mod'
'body': """
(function () {
'use strict';
angular.module('${1:pb.ds.elements}', ['ui.router']);
})();
"""
'.source.scss':
'SVG data url base 64':
'prefix': 'svgbase'
'body': 'data:image/svg+xml;base64,$1'
'Include Breakpoint':
'prefix': 'ibp'
'body': """
@include breakpoint(${1:screen-xs}) {
$2
}$0
"""
'Media Max Width':
'prefix': 'mmw'
'body': """
@media (max-width: ${1:768px}) {
$2
}
"""
'.text.html':
'Non-breaking Hyphen':
'prefix': 'nbh'
'body': '&#8209;'
'Code Snippet Block':
'prefix': 'codesnip'
'body': """
<div class="row">
<div class="col-md-12">
<div class="doc-body-snippet">
<pb-code-snippet options="$1"></pb-code-snippet>
</div>
</div>
</div>
"""
'ScrollSpy Sub List':
'prefix': 'sssl'
'body': """
<ul class="nav" du-spy-context="parent">
<li><a ui-sref="pageroute({'#':'anchorname'})" du-scrollspy>Anchor Name</a></li>
</ul>
"""
'ScrollSpy Left Nav':
'prefix': 'ssln'
'body': """
<div headroom class="doc-side-nav headroom" tolerance="50" offset="240" classes="{'initial':'','pinned':'','unpinned':'','top':'headroom-top','notTop':'headroom-not-top'}">
<nav class="hidden-print hidden-xs hidden-sm" role="tablist">
<ul class="nav">
<li du-scrollspy="sectionname">
<a ui-sref="routename({'#':'sectionname'})" du-scrollspy>SectionName</a>
<!-- submenu when needed -->
<ul class="nav" du-spy-context="sectionname">
<li><a ui-sref="routename({'#':'subsectionanchor'})" du-scrollspy>SubSectionName</a></li>
</ul>
</li>
</ul>
</nav>
</div>
"""
'Form Control':
'prefix': 'fc'
'body': """
<div class="form-group">\n\t<label class="control-label col-sm-3">Postal Code</label>\n<div class="col-sm-9">\n\t<input type="text" class="form-control">\n</div>
"""
/* stylelint-disable */
/*
* 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
*/
@import "ui-variables"; // font size in find/change and rename dialogs
// atom-text-editor[mini] {
// font-size: 15px;
// }
body,
html {
font-size: 14px;
}
// @media (-webkit-min-device-pixel-ratio: 2) {
// atom-text-editor::shadow * {
// // -webkit-font-smoothing: subpixel-antialiased;
// font-size: 13px !important;
// line-height: 1.5;
// }
// }
// for space mono
// * {
// -webkit-font-feature-settings: "liga" off, "case" on, "calt" on;
// }
// for fonts with coding ligatures
// * {
// -webkit-font-feature-settings: "liga" on, "calt" on;
// }
//
// atom-text-editor::shadow {
// .cursor-line {
// -webkit-font-feature-settings: "liga" off, "calt" off;
// }
// }
// some fixes to apply regardless of color scheme:
// fix "bad ampersands" in strings (e.g. comparisons &&)
atom-text-editor::shadow .string.quoted.double.html .invalid.illegal.bad-ampersand.html {
color: inherit;
background-color: inherit;
font-weight: inherit;
}
// escaped strings (as in css3 "content")
atom-text-editor::shadow .string .constant.character.escape {
color: inherit;
background-color: inherit;
font-weight: inherit;
}
atom-text-editor[mini] {
font-family: SFMono-Medium, "Apple Color Emoji";
}
// file icon overrides
// html
// .icon-file-text[data-name$=".html"]:before,
// atom-pane .tab-bar .tab .title[data-path][data-name$=".html"]:before {
// font-family: "Octicons Regular";
// content: '\f05f';
// color: #b4c553;
// }
//scss (color)
// .icon-file-binary[data-name$=".scss"]:before,
// .icon-file-text[data-name$=".scss"]:before,
// .theme-flatland-dark-ui .icon-book[data-name$=".scss"]:before,
// .theme-flatland-dark-ui .icon-file-text[data-name$=".scss"]:before {
// color: #de96cf;
// }
// never underline tags
atom-text-editor::shadow .entity.name.tag {
text-decoration: none;
}
// Un-italicize Comments
atom-text-editor::shadow .comment,
atom-text-editor::shadow .markup.strikethrough,
atom-text-editor::shadow .meta.punctuation.separator,
atom-text-editor::shadow .punctuation.definition.comment,
atom-text-editor::shadow .punctuation.whitespace.comment,
atom-text-editor::shadow .text.cancelled {
font-style: normal;
}
.list-tree .list-item,
.list-tree li.list-item:hover,
.list-tree li.list-nested-item.selected > .list-item,
.list-tree li.list-nested-item.selected > .list-item,
.list-tree li:hover,
.list-tree li:not(.list-nested-item).selected {
// font-size: 12px;
// font-family: SFMono-Medium, Menlo, "Apple Color Emoji";
line-height: 20px !important;
}
// global bracket matcher
// atom-text-editor::shadow .bracket-matcher .region {
// border-bottom: 2px solid rgba(255, 217, 0, 0.7);
// background-color: rgba(255, 217, 0, 0.1);
// z-index: 100;
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment