Skip to content

Instantly share code, notes, and snippets.

@williampansky williampansky/init.coffee
Last active Sep 1, 2017

Embed
What would you like to do?
// Atom.io Sync Settings
# 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
# Default Keymaps for Markdown Writer
# https://atom.io/packages/markdown-writer
#
# Wiki: https://github.com/zhuochun/md-writer/wiki/Settings-for-Keymaps
#
".platform-darwin atom-text-editor:not([mini])":
"shift-cmd-K": "markdown-writer:insert-link"
"shift-cmd-I": "markdown-writer:insert-image"
"cmd-i": "markdown-writer:toggle-italic-text"
"cmd-b": "markdown-writer:toggle-bold-text"
"cmd-'": "markdown-writer:toggle-code-text"
"cmd-k": "markdown-writer:toggle-keystroke-text"
"cmd-h": "markdown-writer:toggle-strikethrough-text"
'cmd->': "markdown-writer:toggle-blockquote"
'cmd-"': "markdown-writer:toggle-codeblock-text"
"ctrl-alt-1": "markdown-writer:toggle-h1"
"ctrl-alt-2": "markdown-writer:toggle-h2"
"ctrl-alt-3": "markdown-writer:toggle-h3"
"ctrl-alt-4": "markdown-writer:toggle-h4"
"ctrl-alt-5": "markdown-writer:toggle-h5"
"shift-cmd-O": "markdown-writer:toggle-ol"
"shift-cmd-U": "markdown-writer:toggle-ul"
"cmd-j cmd-p": "markdown-writer:jump-to-previous-heading"
"cmd-j cmd-n": "markdown-writer:jump-to-next-heading"
"cmd-j cmd-d": "markdown-writer:jump-to-reference-definition"
"cmd-j cmd-t": "markdown-writer:jump-to-next-table-cell"
'atom-text-editor':
'cmd-shift-x': 'autoprefixer'
[
{
"name": "about",
"version": "1.7.6"
},
{
"name": "archive-view",
"version": "0.63.3"
},
{
"name": "atom-beautify",
"version": "0.30.5"
},
{
"name": "atom-bootstrap4",
"version": "1.4.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": "atom-xsltransform",
"version": "0.8.0"
},
{
"name": "autoclose-html",
"version": "0.23.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.1"
},
{
"name": "autocomplete-css",
"version": "0.16.2"
},
{
"name": "autocomplete-html",
"version": "0.8.0"
},
{
"name": "autocomplete-plus",
"version": "2.35.5"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autocomplete-xml",
"version": "0.9.4"
},
{
"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": "color-picker",
"version": "2.2.5"
},
{
"name": "command-palette",
"version": "0.40.4"
},
{
"name": "dalek",
"version": "0.2.1"
},
{
"name": "deprecation-cop",
"version": "0.56.7"
},
{
"name": "dev-live-reload",
"version": "0.47.1"
},
{
"name": "encoding-selector",
"version": "0.23.4"
},
{
"name": "exception-reporting",
"version": "0.41.4"
},
{
"name": "file-icons",
"version": "2.1.11"
},
{
"name": "find-and-replace",
"version": "0.208.3"
},
{
"name": "fuzzy-finder",
"version": "1.5.8"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "github",
"version": "0.3.4-1"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "grammar-selector",
"version": "0.49.5"
},
{
"name": "html-head-snippets",
"version": "0.2.0"
},
{
"name": "image-view",
"version": "0.61.2"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "javascript-snippets",
"version": "1.2.1"
},
{
"name": "keybinding-resolver",
"version": "0.38.0"
},
{
"name": "language-aspx",
"version": "0.5.0"
},
{
"name": "language-c",
"version": "0.58.1"
},
{
"name": "language-clojure",
"version": "0.22.3"
},
{
"name": "language-coffee-script",
"version": "0.48.7"
},
{
"name": "language-csharp",
"version": "0.14.2"
},
{
"name": "language-css",
"version": "0.42.4"
},
{
"name": "language-generic-config",
"version": "1.4.0"
},
{
"name": "language-gfm",
"version": "0.89.1"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.44.1"
},
{
"name": "language-html",
"version": "0.47.3"
},
{
"name": "language-html-swig",
"version": "2.0.1"
},
{
"name": "language-hugo",
"version": "0.3.1"
},
{
"name": "language-hyperlink",
"version": "0.16.1"
},
{
"name": "language-ini",
"version": "1.19.0"
},
{
"name": "language-java",
"version": "0.27.2"
},
{
"name": "language-javascript",
"version": "0.126.1"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-less",
"version": "0.32.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.39.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.45.3"
},
{
"name": "language-ruby",
"version": "0.71.1"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.2"
},
{
"name": "language-sass",
"version": "0.59.0"
},
{
"name": "language-shellscript",
"version": "0.25.1"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.6"
},
{
"name": "language-text",
"version": "0.7.3"
},
{
"name": "language-todo",
"version": "0.29.1"
},
{
"name": "language-toml",
"version": "0.18.1"
},
{
"name": "language-vue",
"version": "0.23.1"
},
{
"name": "language-xml",
"version": "0.35.1"
},
{
"name": "language-yaml",
"version": "0.30.0"
},
{
"name": "line-ending-selector",
"version": "0.7.3"
},
{
"name": "link",
"version": "0.31.3"
},
{
"name": "markdown-preview",
"version": "0.159.12"
},
{
"name": "markdown-writer",
"version": "2.7.0"
},
{
"name": "metrics",
"version": "1.2.6"
},
{
"name": "minimap",
"version": "4.29.6"
},
{
"name": "notifications",
"version": "0.67.2"
},
{
"name": "one-dark-syntax",
"version": "1.7.1",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.10.5",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.7.1",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.10.5",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.1"
},
{
"name": "package-generator",
"version": "1.1.1"
},
{
"name": "php-cs-fixer",
"version": "4.1.1"
},
{
"name": "php-twig",
"version": "4.0.0"
},
{
"name": "pigments",
"version": "0.40.2"
},
{
"name": "sass-autocompile",
"version": "0.13.3"
},
{
"name": "settings-view",
"version": "0.250.0"
},
{
"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": "sort-lines",
"version": "0.15.0"
},
{
"name": "spell-check",
"version": "0.71.4"
},
{
"name": "split-diff",
"version": "1.5.1"
},
{
"name": "status-bar",
"version": "1.8.11"
},
{
"name": "styleguide",
"version": "0.49.6"
},
{
"name": "symbols-view",
"version": "0.116.1"
},
{
"name": "sync-settings",
"version": "0.8.3"
},
{
"name": "tabs",
"version": "0.106.2"
},
{
"name": "timecop",
"version": "0.36.0"
},
{
"name": "tree-view",
"version": "0.217.2"
},
{
"name": "uikit-atom",
"version": "0.2.2"
},
{
"name": "update-package-dependencies",
"version": "0.12.0"
},
{
"name": "web-accessibility-checker",
"version": "0.1.4"
},
{
"name": "welcome",
"version": "0.36.4"
},
{
"name": "whitespace",
"version": "0.37.2"
},
{
"name": "wrap-guide",
"version": "0.40.2"
},
{
"name": "xml-formatter",
"version": "0.11.0"
}
]
{
"Remote-FTP": {
"autoUploadOnSave": "never"
},
"atom-beautify": {
"general": {
"_analyticsUserId": "71a77384-fb22-4e98-bdb8-f2803bd21e27"
},
"scss": {
"align_assignments": true
},
"twig": {
"disabled": true
}
},
"atom-ftp-editor": {
"autoUploadOnSave": false
},
"core": {
"disabledPackages": [
"atom-bootstrap4",
"language-hugo"
],
"openEmptyEditorOnStart": false,
"packagesWithKeymapsDisabled": [
"php-cs-fixer"
],
"projectHome": "/Users/wpansky/Sites",
"telemetryConsent": "limited"
},
"editor": {
"fontFamily": "Source Code Pro",
"fontSize": 15,
"scrollPastEnd": true,
"showIndentGuide": true,
"softWrap": true
},
"exception-reporting": {
"userId": "bfc59898-669a-69b5-cf64-35c084a3f4b2"
},
"minimap": {},
"php-cs-fixer": {
"executablePath": "/usr/local/Cellar/php-cs-fixer/1.8.1/libexec/php-cs-fixer.phar",
"showInfoNotifications": true
},
"pigments": {
"autocompleteSuggestionsFromValue": true,
"extendAutocompleteToColorValue": true,
"extendAutocompleteToVariables": true
},
"sass-autocompile": {
"compileFiles": "Only with first-line-comment",
"compileOnSave": false,
"sourceMap": true
},
"sync-settings": {},
"tree-view": {
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true
},
"tree-view-autoresize": {
"animationMilliseconds": 100,
"maximumWidth": 500
},
"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
###########################################
###########################################
###########################################
#
# - SCSS
'.source.scss':
#
###########################################
###########################################
###########################################
## -----------------------------------------
## BOOTSTRAP v4 - @Media Breakpoints
## -----------------------------------------
## BOOTSTRAP v4 - @Media Breakpoints - large phone / min-wdith: 375px
'@media min-575':
'prefix': '@med575'
'body': """
@media (min-width: 576px) { // @media min-575
.div {
}
}
"""
## -----------------------------------------
## BOOTSTRAP v4 - @Media Breakpoints - tablet / min-wdith: 768px
'@media min-768':
'prefix': '@med768'
'body': """
@media (min-width: 768px) { // @media min-768
.div {
}
}
"""
## -----------------------------------------
## BOOTSTRAP v4 - @Media Breakpoints - desktop / min-wdith: 992px
'@media min-992':
'prefix': '@med992'
'body': """
@media (min-width: 992px) { // @media min-992
.div {
}
}
"""
## -----------------------------------------
## BOOTSTRAP v4 - @Media Breakpoints - large desktop / min-wdith: 1200px
'@media min-1200':
'prefix': '@med1200'
'body': """
@media (min-width: 1200px) { // @media min-1200
.div {
}
}
"""
## -----------------------------------------
## BOOTSTRAP v4 - @Media Breakpoints - massive desktop / min-wdith: 1800px
'@media min-1800':
'prefix': '@med1800'
'body': """
@media (min-width: 1800px) { // @media min-1800
.div {
}
}
"""
## -----------------------------------------
## BOOTSTRAP v4 - @Media Breakpoints - all
'@media 575,768,992,1200':
'prefix': '@medboot4'
'body': """
@media (min-width: 575px) { // @media min-575
.div {
}
}
@media (min-width: 768px) { // @media min-768
.div {
}
}
@media (min-width: 992px) { // @media min-992
.div {
}
}
@media (min-width: 1200px) { // @media min-1200
.div {
}
}
@media (min-width: 1800px) { // @media min-1800
.div {
}
}
"""
## -----------------------------------------
## COMMENTS - .scss Comment Styles
## -----------------------------------------
## COMMENTS - Comment Stylesheet Header
'Comment Section Header':
'prefix': 'com0'
'body': """
// ======================================================
// #
// ======================================================
"""
## -----------------------------------------
## COMMENTS - Comment Section Header
'Comment Section Header':
'prefix': 'com1'
'body': """
// ======================================================
// #
// ======================================================
"""
## -----------------------------------------
## COMMENTS - Inline (sub)Comment
'Comment Inline':
'prefix': 'com2'
'body': """
// -----------------------------------
// ##
"""
## -----------------------------------------
## COMMENTS - End
'Comment Ender':
'prefix': 'end'
'body': ' // end '
###########################################
###########################################
###########################################
#
# - JAVASCRIPT
'.source.js':
#
###########################################
###########################################
###########################################
## -----------------------------------------
## COMMENTS - .scss Comment Styles
## -----------------------------------------
## COMMENTS - Comment Stylesheet Header
'Comment Section Header':
'prefix': 'com0'
'body': """
// ======================================================
// #
// ======================================================
"""
## -----------------------------------------
## COMMENTS - Comment Section Header
'Comment Section Header':
'prefix': 'com1'
'body': """
// ======================================================
// #
// ======================================================
"""
## -----------------------------------------
## COMMENTS - Inline (sub)Comment
'Comment Inline':
'prefix': 'com2'
'body': """
// -----------------------------------
// ##
"""
## -----------------------------------------
## COMMENTS - End
'Comment Ender':
'prefix': 'end'
'body': ' // end '
###########################################
###########################################
###########################################
#
# - HTML
'.text.html':
#
###########################################
###########################################
###########################################
## -----------------------------------------
## BOOTSTRAP v4 - HTML5 Closing Comments
## -----------------------------------------
## BOOTSTRAP v4 - HTML5 Closing Comments - /column
'HTML5 Closing Comment - Column':
'prefix': '/col'
'body': ' <!-- /col -->'
## -----------------------------------------
## BOOTSTRAP v4 - HTML5 Closing Comments - /container
'HTML5 Closing Comment - Container':
'prefix': '/container'
'body': ' <!-- /container -->'
## -----------------------------------------
## BOOTSTRAP v4 - HTML5 Closing Comments - /row
'HTML5 Closing Comment - Row':
'prefix': '/row'
'body': ' <!-- /row -->'
## -----------------------------------------
## BOOTSTRAP v4 - HTML5 <div> Setup
## -----------------------------------------
## BOOTSTRAP v4 - HTML5 <div> Setup - Container, Row
'HTML5 .container .row':
'prefix': 'bootcontainer'
'body': """
<div class="container">
<div class="row">
<div class="col">
</div>
</div>
</div>
"""
## -----------------------------------------
## BOOTSTRAP v4 - HTML5 <div> Setup - w-100
'HTML5 <div> Setup - w-100':
'prefix': 'w-100'
'body': '<div class="w-100"></div>'
## -----------------------------------------
## HTML5 SEMANTIC LAYOUTS
## -----------------------------------------
## HTML5 SEMANTIC LAYOUTS - DOCUMENT
'HTML5 Document Layout':
'prefix': 'html-doc'
'body': """
<div class="container">
<div class="row">
<div class="col">
</div>
</div>
</div>
"""
## -----------------------------------------
## HTML5 SEMANTIC LAYOUTS - INDV. PAGE
## https://vm5.eu/uploads/media/ckUploads/0001/01/03b49ea344e3cf5d0d92db46892eb57890713e27.jpeg
'HTML5 Single Page Layout':
'prefix': 'html-single'
'body': """
<header>
<nav></nav>
</header>
<section></section>
<main>
<article>
<header></header>
<footer></footer>
</article>
</main>
<aside>
<nav></nav>
</aside>
<footer>
<nav></nav>
</footer>
"""
###########################################
###########################################
###########################################
#
# - PHP
'.source.php':
#
###########################################
###########################################
###########################################
## -----------------------------------------
## COMMENTS - .php Comment Styles
## -----------------------------------------
## COMMENTS - Comment Stylesheet Header
'Comment Section Header':
'prefix': 'com0'
'body': """
// ======================================================
// #
// ======================================================
"""
## -----------------------------------------
## COMMENTS - Comment Section Header
'Comment Section Header':
'prefix': 'com1'
'body': """
// ======================================================
// #
// ======================================================
"""
## -----------------------------------------
## COMMENTS - Inline (sub)Comment
'Comment Inline':
'prefix': 'com2'
'body': """
// -----------------------------------
// ##
"""
## -----------------------------------------
## COMMENTS - End
'Comment Ender':
'prefix': 'end'
'body': ' // end '
/*
* 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;
font-family: sans-serif;
font-size: 12px;
letter-spacing: .25px;
margin-bottom: 40px;
}
.list-tree.has-collapsable-children .list-nested-item > .list-tree > li,
.list-tree.has-collapsable-children .list-nested-item > .list-group > li {
padding-left: 14px;
}
@media (min-height:1600px) {
.tree-view {
font-size: 9.5px;
}
.list-tree.has-collapsable-children .list-nested-item > .list-tree > li,
.list-tree.has-collapsable-children .list-nested-item > .list-group > li {
padding-left: 4.5px;
}
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// font-size: 16px;
line-height: 1.465;
// color: white;
// background-color: hsl(180, 24%, 12%);
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
// border-color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.