Skip to content

Instantly share code, notes, and snippets.

@marcofugaro
Last active December 9, 2017 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcofugaro/e68d910a5edd3663ec96947b88d7e214 to your computer and use it in GitHub Desktop.
Save marcofugaro/e68d910a5edd3663ec96947b88d7e214 to your computer and use it in GitHub Desktop.
My atom configuration
# 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
'.platform-win32, .platform-win32 atom-text-editor':
'ctrl-t': 'application:new-file'
'ctrl-k': 'duplicate-line-or-selection:duplicate'
'shift-ctrl-d': 'find-and-replace:select-skip'
'ctrl-q': 'atom-transpose:transpose'
'ctrl-alt-v': 'clipboard-plus:toggle'
'ctrl-shift-a': 'expand-region:expand'
'ctrl-u': 'last-cursor-position:previous'
'ctrl-shift-u': 'last-cursor-position:next'
'ctrl-r': 'editor:auto-indent'
'ctrl-shift-w': 'wrap-in-tag:wrap'
'ctrl-alt-tab': 'tree-view:toggle-focus'
'ctrl-alt-right': 'editor:move-to-next-subword-boundary'
'ctrl-alt-left': 'editor:move-to-previous-subword-boundary'
'ctrl-shift-alt-right': 'editor:select-to-next-subword-boundary'
'ctrl-shift-alt-left': 'editor:select-to-previous-subword-boundary'
'alt-up': 'block-travel:move-up'
'alt-down': 'block-travel:move-down'
'alt-shift-up': 'block-travel:select-up'
'alt-shift-down': 'block-travel:select-down'
'.platform-darwin, .platform-darwin atom-text-editor':
'cmd-t': 'application:new-file'
'ctrl-k': 'duplicate-line-or-selection:duplicate'
'shift-cmd-d': 'find-and-replace:select-skip'
'ctrl-q': 'atom-transpose:transpose'
'alt-cmd-v': 'clipboard-plus:toggle'
'shift-cmd-a': 'expand-region:expand'
'cmd-u': 'last-cursor-position:previous'
'shift-cmd-u': 'last-cursor-position:next'
'cmd-r': 'editor:auto-indent'
'ctrl-shift-w': 'wrap-in-tag:wrap'
'alt-tab': 'tree-view:toggle-focus'
'ctrl-alt-right': 'editor:move-to-next-subword-boundary'
'ctrl-alt-left': 'editor:move-to-previous-subword-boundary'
'ctrl-shift-alt-right': 'editor:select-to-next-subword-boundary'
'ctrl-shift-alt-left': 'editor:select-to-previous-subword-boundary'
'alt-up': 'block-travel:move-up'
'alt-down': 'block-travel:move-down'
'alt-shift-up': 'block-travel:select-up'
'alt-shift-down': 'block-travel:select-down'
# correct and natural ctrl+tab
'atom-text-editor':
'ctrl-tab ^ctrl': 'unset!'
'ctrl-tab': 'pane:show-next-item'
'ctrl-shift-tab ^ctrl': 'unset!'
'ctrl-shift-tab': 'pane:show-previous-item'
[
{
"name": "about",
"version": "1.7.8"
},
{
"name": "archive-view",
"version": "0.63.4"
},
{
"name": "atom-beautify",
"version": "0.30.9"
},
{
"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.6.0"
},
{
"name": "atom-import-cost",
"version": "1.2.0"
},
{
"name": "atom-increment",
"version": "0.3.4"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.0",
"theme": "ui"
},
{
"name": "atom-transpose",
"version": "0.3.5"
},
{
"name": "atom-wrap-in-tag",
"version": "0.6.0"
},
{
"name": "autoclose-tags",
"version": "0.2.2"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.3"
},
{
"name": "autocomplete-css",
"version": "0.17.3"
},
{
"name": "autocomplete-html",
"version": "0.8.2"
},
{
"name": "autocomplete-plus",
"version": "2.36.11"
},
{
"name": "autocomplete-snippets",
"version": "1.11.2"
},
{
"name": "autoflow",
"version": "0.29.0"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"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": "block-comment-plus",
"version": "0.5.1"
},
{
"name": "block-travel",
"version": "1.0.5"
},
{
"name": "bookmarks",
"version": "0.44.4"
},
{
"name": "bracket-matcher",
"version": "0.88.0"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "clipboard-plus",
"version": "0.5.1"
},
{
"name": "color-picker",
"version": "2.2.5"
},
{
"name": "command-palette",
"version": "0.41.1"
},
{
"name": "css-snippets",
"version": "1.1.0"
},
{
"name": "dalek",
"version": "0.2.1"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.47.1"
},
{
"name": "docblockr",
"version": "0.13.2"
},
{
"name": "duplicate-line-or-selection",
"version": "0.9.0"
},
{
"name": "editorconfig",
"version": "2.2.2"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.23.6"
},
{
"name": "exception-reporting",
"version": "0.41.4"
},
{
"name": "expand-region",
"version": "0.4.0"
},
{
"name": "figlet",
"version": "0.5.4"
},
{
"name": "file-icons",
"version": "2.1.14"
},
{
"name": "file-watcher",
"version": "1.2.6"
},
{
"name": "find-and-replace",
"version": "0.212.3"
},
{
"name": "fuzzy-finder",
"version": "1.6.1"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "github",
"version": "0.7.0"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "grammar-selector",
"version": "0.49.6"
},
{
"name": "highlight-selected",
"version": "0.13.1"
},
{
"name": "hyperclick",
"version": "0.0.0"
},
{
"name": "image-view",
"version": "0.62.4"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "js-hyperclick",
"version": "1.12.2"
},
{
"name": "keybinding-resolver",
"version": "0.38.0"
},
{
"name": "language-babel",
"version": "2.80.3"
},
{
"name": "language-c",
"version": "0.58.1"
},
{
"name": "language-clojure",
"version": "0.22.4"
},
{
"name": "language-coffee-script",
"version": "0.49.1"
},
{
"name": "language-csharp",
"version": "0.14.2"
},
{
"name": "language-css",
"version": "0.42.6"
},
{
"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.48.2"
},
{
"name": "language-hyperlink",
"version": "0.16.2"
},
{
"name": "language-java",
"version": "0.27.4"
},
{
"name": "language-javascript",
"version": "0.127.5"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-less",
"version": "0.33.0"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-mustache",
"version": "0.14.3"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.37.0"
},
{
"name": "language-php",
"version": "0.42.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.2.1"
},
{
"name": "language-xml",
"version": "0.35.2"
},
{
"name": "language-yaml",
"version": "0.31.0"
},
{
"name": "last-cursor-position",
"version": "0.9.2"
},
{
"name": "line-ending-selector",
"version": "0.7.4"
},
{
"name": "link",
"version": "0.31.3"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-eslint",
"version": "8.4.0"
},
{
"name": "linter-ui-default",
"version": "1.6.10"
},
{
"name": "markdown-preview",
"version": "0.159.17"
},
{
"name": "metrics",
"version": "1.2.6"
},
{
"name": "minimap",
"version": "4.29.7"
},
{
"name": "minimap-find-and-replace",
"version": "4.5.2"
},
{
"name": "minimap-git-diff",
"version": "4.3.1"
},
{
"name": "minimap-highlight-selected",
"version": "4.6.1"
},
{
"name": "minimap-selection",
"version": "4.5.0"
},
{
"name": "notifications",
"version": "0.69.2"
},
{
"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": "open-on-github",
"version": "1.2.1"
},
{
"name": "package-generator",
"version": "1.1.1"
},
{
"name": "pigments",
"version": "0.40.2"
},
{
"name": "prettier-atom",
"version": "0.43.0"
},
{
"name": "project-manager",
"version": "3.3.5"
},
{
"name": "settings-view",
"version": "0.251.10"
},
{
"name": "snippets",
"version": "1.1.5"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "spacegray-atom-dark-syntax",
"version": "1.3.2",
"theme": "syntax"
},
{
"name": "spaces-in-braces",
"version": "0.1.0"
},
{
"name": "spell-check",
"version": "0.72.2"
},
{
"name": "split-diff",
"version": "1.5.1"
},
{
"name": "status-bar",
"version": "1.8.14"
},
{
"name": "styleguide",
"version": "0.49.7"
},
{
"name": "symbols-view",
"version": "0.118.1"
},
{
"name": "sync-settings",
"version": "0.8.3"
},
{
"name": "tabs",
"version": "0.107.4"
},
{
"name": "threejs-snippets",
"version": "0.0.8"
},
{
"name": "timecop",
"version": "0.36.0"
},
{
"name": "todo-show",
"version": "2.1.0"
},
{
"name": "touchbar-git",
"version": "0.1.4"
},
{
"name": "touchbar-registry",
"version": "0.3.2"
},
{
"name": "tree-view",
"version": "0.218.0"
},
{
"name": "update-package-dependencies",
"version": "0.12.0"
},
{
"name": "welcome",
"version": "0.36.5"
},
{
"name": "whitespace",
"version": "0.37.4"
},
{
"name": "wrap-guide",
"version": "0.40.2"
}
]
{
"atom-beautify": {
"general": {
"_analyticsUserId": "524733ad-d03b-4b00-9bf0-0b0d27166882"
}
},
"atom-ide-ui": {
"atom-ide-code-format": {
"formatOnSave": true,
"formatOnType": false
},
"hyperclick": {
"darwinTriggerKeys": "ctrlKey"
},
"use": {
"atom-ide-diagnostics-ui": false
}
},
"atom-increment": {
"incValue": 1
},
"atom-package-deps": {
"ignored": []
},
"core": {
"closeEmptyWindows": false,
"disabledPackages": [
"wrap-guide",
"block-comment-plus",
"hyperclick",
"js-hyperclick",
"threejs-snippets",
"github",
"autocomplete-plus",
"atom-import-cost"
],
"openEmptyEditorOnStart": false,
"projectHome": "C:\\Users\\Marco Fugaro\\Desktop",
"telemetryConsent": "limited",
"warnOnLargeFileLimit": 1
},
"editor": {
"fontSize": 15,
"scrollPastEnd": true,
"showIndentGuide": true,
"softWrap": true,
"tabType": "soft"
},
"exception-reporting": {
"userId": "25369707-6fb0-f1f1-b501-46bd170f0beb"
},
"expand-region": {},
"fuzzy-finder": {},
"hyperclick": {
"darwinTriggerKeys": "altKey",
"linuxTriggerKeys": "altKey",
"win32TriggerKeys": "altKey"
},
"js-hyperclick": {},
"language-babel": {},
"linter": {
"lintOnChange": false
},
"linter-eslint": {},
"linter-ui-default": {
"showPanel": true
},
"markdown-preview": {
"useGitHubStyle": true
},
"merge-conflicts": {},
"minimap": {
"plugins": {
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0,
"git-diff": true,
"git-diffDecorationsZIndex": 0,
"highlight-selected": true,
"highlight-selectedDecorationsZIndex": 0,
"selection": true,
"selectionDecorationsZIndex": 0
}
},
"minimap-git-diff": {
"useGutterDecoration": true
},
"one-dark-ui": {
"hideDockButtons": true
},
"pigments": {
"notifyReloads": false
},
"prettier-atom": {
"prettierOptions": {
"printWidth": 100,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
},
"useEslint": true
},
"project-manager": {
"alwaysOpenInSameWindow": true,
"sortBy": "last modified"
},
"sync-settings": {
"gistDescription": "My atom configuration"
},
"tabs": {
"enableMruTabSwitching": false
},
"toggle-packages": {
"displayStatusBar": false
},
"tree-view": {
"alwaysOpenExisting": true,
"autoReveal": true,
"focusOnReveal": false,
"hideIgnoredNames": true
},
"welcome": {
"showOnStartup": false
},
"whitespace": {
"ignoreWhitespaceOnCurrentLine": false,
"keepMarkdownLineBreakWhitespace": 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
".source.js, .source.jsx, .source.ts, .source.js-semantic":
"console.log":
"prefix": "cl"
"body": "console.log(${1:obj})"
"console.log as a JSON":
"prefix": "clj"
"body": "console.log(JSON.stringify(${1:obj}, null, 4))"
"console.warn":
"prefix": "cw"
"body": "console.warn(${1:obj})"
"console.info":
"prefix": "ci"
"body": "console.info(${1:obj})"
"React Component":
"prefix": "rc"
"body": """
import React, { Component } from 'react'
export default class ${1:MyComponent} extends Component {
render() {
return (
<div></div>
)
}
}
"""
"React Dumb Component":
"prefix": "rdc"
"body": """
import React from 'react'
export default function ${1:MyDumbComponent}({ ...props }) {
return (
<div></div>
)
}
"""
/*
* 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
*/
// Hide the Featured Packages section
.settings-view .section.packages:not(:first-child) {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment