Skip to content

Instantly share code, notes, and snippets.

@mattmcmanus
Last active November 27, 2019 20:36
Show Gist options
  • Save mattmcmanus/9bf9942f2c85500518c061fb8f697b30 to your computer and use it in GitHub Desktop.
Save mattmcmanus/9bf9942f2c85500518c061fb8f697b30 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.setSoftWrapped(true)
# 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:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# '.workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * https://atom.io/docs/latest/customizing-atom#customizing-key-bindings
# * https://atom.io/docs/latest/advanced/keymaps
# 'atom-text-editor.vim-mode-plus:not(.insert-mode)':
# 'y s': 'vim-mode-plus:surround'
# 'y s w': 'vim-mode-plus:surround-word'
# 'd s': 'vim-mode-plus:delete-surround'
# # 'c s': 'vim-mode-plus:change-surround'
# 'd s': 'vim-mode-plus:delete-surround-any-pair'
# 'c s': 'vim-mode-plus:change-surround-any-pair'
'.platform-darwin atom-text-editor:not(.mini)':
'ctrl-cmd-e': 'linter-ui-default:next'
'ctrl-cmd-shift-e': 'linter-ui-default:previous'
[
{
"name": "about",
"version": "1.9.1"
},
{
"name": "archive-view",
"version": "0.65.1"
},
{
"name": "atom-beautify",
"version": "0.33.4"
},
{
"name": "atom-dark-syntax",
"version": "0.29.1",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.3",
"theme": "ui"
},
{
"name": "atom-ember-template-lint",
"version": "4.0.0"
},
{
"name": "atom-handlebars",
"version": "1.3.0"
},
{
"name": "atom-ide-ui",
"version": "0.13.0"
},
{
"name": "atom-light-syntax",
"version": "0.29.1",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.3",
"theme": "ui"
},
{
"name": "atom-qunit-snippets",
"version": "1.3.0"
},
{
"name": "atom-terminal",
"version": "0.8.0"
},
{
"name": "atom-typescript",
"version": "13.3.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.7"
},
{
"name": "autocomplete-css",
"version": "0.17.5"
},
{
"name": "autocomplete-html",
"version": "0.8.8"
},
{
"name": "autocomplete-paths",
"version": "2.12.2"
},
{
"name": "autocomplete-plus",
"version": "2.42.3"
},
{
"name": "autocomplete-snippets",
"version": "1.12.1"
},
{
"name": "autoflow",
"version": "0.29.4"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"name": "background-tips",
"version": "0.28.0"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.46.0"
},
{
"name": "bracket-matcher",
"version": "0.91.1"
},
{
"name": "busy-signal",
"version": "2.0.1"
},
{
"name": "carbon-now-sh",
"version": "2.0.3"
},
{
"name": "change-case",
"version": "0.6.5"
},
{
"name": "command-palette",
"version": "0.43.5"
},
{
"name": "cucumber",
"version": "0.7.0"
},
{
"name": "dalek",
"version": "0.2.2"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.48.1"
},
{
"name": "ember-snippets",
"version": "3.0.2"
},
{
"name": "encoding-selector",
"version": "0.23.9"
},
{
"name": "exception-reporting",
"version": "0.43.1"
},
{
"name": "file-type-icons",
"version": "1.3.4"
},
{
"name": "find-and-replace",
"version": "0.219.0"
},
{
"name": "fuzzy-finder",
"version": "1.14.0"
},
{
"name": "genesis-syntax",
"version": "1.0.9",
"theme": "syntax"
},
{
"name": "genesis-ui",
"version": "0.5.0",
"theme": "ui"
},
{
"name": "git-diff",
"version": "1.3.9"
},
{
"name": "github",
"version": "0.30.1"
},
{
"name": "go-to-line",
"version": "0.33.0"
},
{
"name": "grammar-selector",
"version": "0.50.1"
},
{
"name": "highlight-selected",
"version": "0.16.0"
},
{
"name": "ide-ember",
"version": "0.5.0"
},
{
"name": "ide-typescript",
"version": "0.9.1"
},
{
"name": "image-view",
"version": "0.64.0"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "keybinding-resolver",
"version": "0.39.0"
},
{
"name": "language-c",
"version": "0.60.18"
},
{
"name": "language-clojure",
"version": "0.22.8"
},
{
"name": "language-coffee-script",
"version": "0.50.0"
},
{
"name": "language-csharp",
"version": "1.1.0"
},
{
"name": "language-css",
"version": "0.44.0"
},
{
"name": "language-csv",
"version": "1.1.2"
},
{
"name": "language-ejs",
"version": "0.4.0"
},
{
"name": "language-ember-htmlbars",
"version": "0.4.0"
},
{
"name": "language-gfm",
"version": "0.90.6"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.47.1"
},
{
"name": "language-html",
"version": "0.52.3"
},
{
"name": "language-hyperlink",
"version": "0.17.1"
},
{
"name": "language-java",
"version": "0.31.3"
},
{
"name": "language-javascript",
"version": "0.132.0"
},
{
"name": "language-json",
"version": "1.0.4"
},
{
"name": "language-less",
"version": "0.34.3"
},
{
"name": "language-liquid",
"version": "0.7.0"
},
{
"name": "language-lua",
"version": "0.9.11"
},
{
"name": "language-make",
"version": "0.23.0"
},
{
"name": "language-mustache",
"version": "0.14.5"
},
{
"name": "language-nginx",
"version": "0.8.0"
},
{
"name": "language-objective-c",
"version": "0.16.0"
},
{
"name": "language-perl",
"version": "0.38.1"
},
{
"name": "language-php",
"version": "0.44.2"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.53.3"
},
{
"name": "language-rspec",
"version": "0.12.1"
},
{
"name": "language-ruby",
"version": "0.72.20"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-rust-bundled",
"version": "0.1.0"
},
{
"name": "language-sass",
"version": "0.62.0"
},
{
"name": "language-shellscript",
"version": "0.28.0"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.10"
},
{
"name": "language-text",
"version": "0.7.4"
},
{
"name": "language-todo",
"version": "0.29.4"
},
{
"name": "language-toml",
"version": "0.20.0"
},
{
"name": "language-typescript",
"version": "0.5.2"
},
{
"name": "language-xml",
"version": "0.35.3"
},
{
"name": "language-yaml",
"version": "0.32.0"
},
{
"name": "line-ending-selector",
"version": "0.7.7"
},
{
"name": "link",
"version": "0.31.6"
},
{
"name": "linter",
"version": "2.3.1"
},
{
"name": "linter-eslint",
"version": "8.5.5"
},
{
"name": "linter-jsonlint",
"version": "1.4.0"
},
{
"name": "linter-rubocop",
"version": "2.5.3"
},
{
"name": "linter-stylelint",
"version": "4.4.9"
},
{
"name": "linter-tslint",
"version": "1.10.32"
},
{
"name": "linter-ui-default",
"version": "1.8.0"
},
{
"name": "markdown-preview",
"version": "0.160.2"
},
{
"name": "metrics",
"version": "1.8.1"
},
{
"name": "minimap",
"version": "4.29.9"
},
{
"name": "minimap-highlight-selected",
"version": "4.6.1"
},
{
"name": "minimap-linter",
"version": "2.2.1"
},
{
"name": "notifications",
"version": "0.71.0"
},
{
"name": "nucleus-dark-ui",
"version": "0.12.3",
"theme": "ui"
},
{
"name": "one-dark-syntax",
"version": "1.8.4",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.12.5",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.4",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.12.5",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.3.1"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "prettier-atom",
"version": "0.58.2"
},
{
"name": "rails-latest-migration",
"version": "1.1.6"
},
{
"name": "rails-snippets",
"version": "2.25.0"
},
{
"name": "rspec-snippets",
"version": "0.5.0"
},
{
"name": "rubocop-auto-correct",
"version": "1.5.1"
},
{
"name": "ruby-block",
"version": "0.3.6"
},
{
"name": "ruby-slim",
"version": "0.2.0"
},
{
"name": "settings-view",
"version": "0.261.3"
},
{
"name": "snippets",
"version": "1.5.0"
},
{
"name": "solarized-dark-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.75.0"
},
{
"name": "status-bar",
"version": "1.8.17"
},
{
"name": "styleguide",
"version": "0.49.12"
},
{
"name": "svg-preview",
"version": "0.14.0"
},
{
"name": "symbols-view",
"version": "0.118.2"
},
{
"name": "sync-settings",
"version": "0.8.6"
},
{
"name": "tablr",
"version": "1.8.3"
},
{
"name": "tabs",
"version": "0.110.0"
},
{
"name": "teletype",
"version": "0.13.4"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "toggle-quotes",
"version": "1.1.4"
},
{
"name": "tree-view",
"version": "0.228.0"
},
{
"name": "turbo-javascript",
"version": "1.4.0"
},
{
"name": "typescript-modules-helper",
"version": "0.8.0"
},
{
"name": "update-package-dependencies",
"version": "0.13.1"
},
{
"name": "uuidgen",
"version": "1.4.0"
},
{
"name": "vim-mode-plus",
"version": "1.36.2"
},
{
"name": "welcome",
"version": "0.36.9"
},
{
"name": "whitespace",
"version": "0.37.7"
},
{
"name": "wrap-guide",
"version": "0.41.0"
}
]
{
"core": {
"disabledPackages": [
"autocomplete-paths",
"atom-ide-ui",
"atom-terminal",
"carbon-now-sh",
"cucumber",
"ide-ember",
"ide-typescript"
],
"projectHome": "/Users/matt/code",
"telemetryConsent": "no",
"themes": [
"one-dark-ui",
"base16-tomorrow-dark-theme"
]
},
"editor": {
"fontFamily": "Bitstream Vera Sans Mono, Menlo, Consolas, DejaVu Sans Mono, monospace",
"preferredLineLength": 120,
"showIndentGuide": true,
"softWrap": true,
"softWrapAtPreferredLineLength": true
},
"exception-reporting": {
"userId": "d3ee488b-38d6-44ff-8a0d-5d9ab7462353"
},
"linter": {},
"minimap": {
"plugins": {
"highlight-selected": true,
"highlight-selectedDecorationsZIndex": 0,
"linter": true,
"linterDecorationsZIndex": 0
}
},
"sync-settings": {},
"tree-view": {
"alwaysOpenExisting": true,
"autoReveal": true,
"focusOnReveal": false,
"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'
#
# /////////////////////////////////////
# handlebars
# /////////////////////////////////////
'.text.handlebars':
'panel':
'prefix': 'panel'
'body': """
<div class="panel">
<div class="panel-header">
<h3 class="panel-title">${1}</h3>
</div>
<div class="panel-body">
${2}
</div>
</div>
"""
# /////////////////////////////////////
# Ruby
# /////////////////////////////////////
'.source.ruby':
'byebug':
'prefix': 'bye'
'body': 'require \'byebug\'; byebug'
# /////////////////////////////////////
# Javascript
# /////////////////////////////////////
'.source.js':
'function':
'prefix': 'f',
'body': 'function(${1:arguments}) {${2}}'
'console.log':
'prefix': 'log'
'body': 'console.log(${1:"crash"});$2'
'then':
'prefix': 'then'
'body': 'then((${1}) => {${2}});'
'forEach':
'prefix': 'forEach'
'body': 'forEach((${1}) => {${2}});'
'Fat Arrow':
'prefix': '=>'
'body': '(${1}) => {${2}}'
'import':
'prefix': 'im'
'body': 'import ${1:package} from \'${1:package}\';'
'import Chai':
'prefix': 'iCh'
'body': "import { expect } from 'chai';"
'pauseTest':
'prefix': 'pause'
'body': "await this.pauseTest();"
'beforeEach':
'prefix': 'beforeEach'
'body': """
hooks.beforeEach(function() {
${1}
});
"""
'module':
'prefix': 'module'
'body': """
module('${1}', function(hooks) {
hooks.beforeEach(function() {
${2}
});
test('${3}', async function(assert) {
${4}
});
});
"""
'describe':
'prefix': 'describe'
'body': """
describe('${1}', function() {
${2}
});
"""
'it':
'prefix': 'it'
'body': """
it('${1}', async function() {
${2}
});
"""
'test':
'prefix': 'test'
'body': """
test('${1}', async function(assert) {
${2}
});
"""
'dom':
'prefix': 'dom'
'body': """
assert.dom(${1}).${2}(${3});
"""
'Component: constructor':
'prefix': 'constructor'
'body': """
constructor(owner, args) {
super(owner, args);
${1}
}
"""
'Factory: afterCreate':
'prefix': 'afterCreate'
'leftLabel': 'Mirage'
'body': """
afterCreate(${1:model}, server) {
\t$2
},
"""
'Factory: trait':
'prefix': 'trait'
'leftLabel': 'Mirage'
'body': """
$1: trait({
\t$2
}),
"""
'Factory: .create(...)':
'prefix': 'create'
'leftLabel': 'Mirage'
'body': """
server.create(\'${1:model}\', ${2:\'${3:trait}\',} ${4:\{ $5 \}});
"""
'Server endpoint':
'prefix': 'server'
'leftLabel': 'Mirage'
'body': """
server.${1:get}('${2:/}', (${3:schema, request}) => {
\t$4
});
"""
'import task':
'prefix': 'imta'
'leftLabel': 'Concurrency'
'body': "import { task } from 'ember-concurrency';"
'Task':
'prefix': 'task'
'leftLabel': 'Concurrency'
'body': """
task(function*(){
\tyield $1
}),
"""
'.source.coffee':
'Describe block':
'prefix': 'de',
'body': 'describe \'${1:description}\', ->\n ${2:body}'
'It block':
'prefix': 'i',
'body': 'it \'$1\', ->\n $2'
/*
* 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
*/
.tree-view {
}
atom-text-editor,
atom-text-editor::shadow {
-webkit-font-smoothing: subpixel-antialiased;
// background: #1D2024;
.comment,
.punctuation.definition.comment { color: #555; }
.cursor-line { background: rgba(255,255,255,.02); }
}
atom-text-editor .cursor {
}
atom-pane .tab-bar {
.tab.modified, .tab.modified.active {
color: #D6AD5C;
font-weight: bold;
}
}
// atom-text-editor::shadow .highlight.find-result .region {
// background: yellow;
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment