Skip to content

Instantly share code, notes, and snippets.

@thibaudgg
Last active February 7, 2020 08:27
Show Gist options
  • Save thibaudgg/5d1f45321ef74dd14beb5ebf35839a33 to your computer and use it in GitHub Desktop.
Save thibaudgg/5d1f45321ef74dd14beb5ebf35839a33 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 log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
# console.log "Saved! #{editor.getPath()}"
atom.packages.onDidActivateInitialPackages =>
ruby_version = atom.config.get('core.RUBY_VERSION')
if ruby_version
process.env.RUBY_VERSION = ruby_version
gem_path = atom.config.get('core.GEM_PATH')
if gem_path
process.env.GEM_PATH = gem_path
path = atom.config.get('core.PATH')
if path
process.env.PATH = path
# 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.
#
# 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:
# * https://atom.io/docs/latest/using-atom-basic-customization#customizing-key-bindings
# * https://atom.io/docs/latest/behind-atom-keymaps-in-depth
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'atom-text-editor':
'alt-cmd-left': 'window:focus-previous-pane'
'alt-cmd-right': 'window:focus-next-pane'
'shift-cmd-a': 'rails-rspec:toggle-spec-file'
'shift-cmd-e': 'rspec:run-last'
'shift-cmd-r': 'rspec:run-for-line'
'shift-cmd-t': 'rspec:run'
'shift-cmd-y': 'rspec:run-all'
'body':
'shift-alt-cmd-left': 'pane:split-left'
'shift-alt-cmd-right': 'pane:split-right'
[
{
"name": "about",
"version": "1.9.1"
},
{
"name": "archive-view",
"version": "0.65.1"
},
{
"name": "atom-beautify",
"version": "0.33.4"
},
{
"name": "atom-clock",
"version": "0.1.17"
},
{
"name": "atom-ctags",
"version": "5.1.2"
},
{
"name": "atom-dark-syntax",
"version": "0.29.1",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.3",
"theme": "ui"
},
{
"name": "atom-light-syntax",
"version": "0.29.1",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.3",
"theme": "ui"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.7"
},
{
"name": "autocomplete-css",
"version": "0.17.5"
},
{
"name": "autocomplete-html",
"version": "0.8.8"
},
{
"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.2"
},
{
"name": "busy-signal",
"version": "2.0.1"
},
{
"name": "command-palette",
"version": "0.43.5"
},
{
"name": "dalek",
"version": "0.2.2"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.48.1"
},
{
"name": "encoding-selector",
"version": "0.23.9"
},
{
"name": "exception-reporting",
"version": "0.43.1"
},
{
"name": "file-icons",
"version": "2.1.38"
},
{
"name": "find-and-replace",
"version": "0.219.1"
},
{
"name": "fuzzy-finder",
"version": "1.14.1"
},
{
"name": "git-diff",
"version": "1.3.9"
},
{
"name": "git-plus",
"version": "8.7.1"
},
{
"name": "github",
"version": "0.31.1-2"
},
{
"name": "go-to-line",
"version": "0.33.0"
},
{
"name": "grammar-selector",
"version": "0.50.1"
},
{
"name": "highlight-selected",
"version": "0.17.0"
},
{
"name": "image-view",
"version": "0.64.0"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "iso8601-timestamp",
"version": "0.1.1"
},
{
"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.2"
},
{
"name": "language-gfm",
"version": "0.90.7"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.47.1"
},
{
"name": "language-html",
"version": "0.53.0"
},
{
"name": "language-hyperlink",
"version": "0.17.1"
},
{
"name": "language-ignore",
"version": "1.8.0"
},
{
"name": "language-java",
"version": "0.31.3"
},
{
"name": "language-javascript",
"version": "0.134.0"
},
{
"name": "language-json",
"version": "1.0.4"
},
{
"name": "language-less",
"version": "0.34.3"
},
{
"name": "language-make",
"version": "0.23.0"
},
{
"name": "language-mustache",
"version": "0.14.5"
},
{
"name": "language-objective-c",
"version": "0.16.0"
},
{
"name": "language-perl",
"version": "0.38.1"
},
{
"name": "language-php",
"version": "0.44.4"
},
{
"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.22"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-rust-bundled",
"version": "0.1.0"
},
{
"name": "language-sass",
"version": "0.62.1"
},
{
"name": "language-shellscript",
"version": "0.28.0"
},
{
"name": "language-slim",
"version": "1.0.1"
},
{
"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.6.0"
},
{
"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-rubocop",
"version": "2.5.5"
},
{
"name": "linter-ruby",
"version": "1.3.1"
},
{
"name": "linter-ui-default",
"version": "1.8.1"
},
{
"name": "markdown-preview",
"version": "0.160.2"
},
{
"name": "metrics",
"version": "1.8.1"
},
{
"name": "notifications",
"version": "0.71.0"
},
{
"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.2"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "rails-snippets",
"version": "2.25.0"
},
{
"name": "railscast-theme",
"version": "0.4.0",
"theme": "syntax"
},
{
"name": "rspec",
"version": "0.4.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": "symbols-view",
"version": "0.118.2"
},
{
"name": "sync-settings",
"version": "2.0.0"
},
{
"name": "tabs",
"version": "0.110.0"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "toggle-quotes",
"version": "1.1.4"
},
{
"name": "tree-view",
"version": "0.228.0"
},
{
"name": "update-package-dependencies",
"version": "0.13.1"
},
{
"name": "welcome",
"version": "0.36.9"
},
{
"name": "whitespace",
"version": "0.37.7"
},
{
"name": "wrap-guide",
"version": "0.41.0"
},
{
"name": "zentabs",
"version": "0.8.9"
}
]
{
"atom-beautify": {
"css": {
"align_assignments": true,
"beautify_on_save": true
},
"general": {
"_analyticsUserId": "9be98f0c-4cf8-404e-a8c7-94b87566796e"
},
"json": {
"beautify_on_save": true,
"break_chained_methods": true,
"default_beautifier": "Prettier",
"end_with_comma": true,
"end_with_newline": true
},
"ruby": {},
"sass": {
"beautify_on_save": true
},
"scss": {
"beautify_on_save": true
}
},
"atom-clock": {},
"atom-ctags": {
"autoBuildTagsWhenActive": true,
"buildTimeout": 20000,
"cmdArgs": "--exclude=\"*.js\" --exclude=\"*.sql\" --exclude=\"*.coffee\" --exclude=\"*.slim\" --exclude=\"*.yml\" --exclude=db/migrate --exclude=tmp --exclude=log --exclude=node_modules --exclude=tmp --exclude=public/tmp --exclude=doc --exclude=spec/cassettes --exclude=app/assets --exclude=app/javascript --exclude=vendor --exclude=storage --exclude=.git"
},
"atom-material-ui": {
"themeSyle": "Darker"
},
"atom-package-deps": {
"ignored": []
},
"atom-test-runner": {
"minitestAllCommand": "set PATH /Users/Thibaud/.rubies/ruby-2.4.1/bin $PATH; bin/rails test",
"minitestFileCommand": "set PATH /Users/Thibaud/.rubies/ruby-2.4.1/bin $PATH; bin/rails test {relative_path}",
"minitestSingleCommand": "set PATH /Users/Thibaud/.rubies/ruby-2.4.1/bin $PATH; bin/rails test {relative_path}:{line_number}",
"rspecAllCommand": "set PATH /Users/Thibaud/.rubies/ruby-2.4.1/bin $PATH; bin/rspec spec",
"rspecFileCommand": "set PATH /Users/Thibaud/.rubies/ruby-2.4.1/bin $PATH; bin/rspec {relative_path}",
"rspecSingleCommand": "set PATH /Users/Thibaud/.rubies/ruby-2.4.1/bin $PATH; bin/rspec {relative_path}:{line_number}",
"shell": "fish",
"specFramework": "rspec",
"testFramework": "minitest"
},
"autocomplete-plus": {
"useAlternateScoring": true
},
"autosave": {
"enabled": true
},
"bracket-matcher": {},
"circle-ci": {
"apiToken": "634be7540aa3aad160baeda6cc212ca68e81bffc",
"iconColor": true
},
"core": {
"audioBeep": false,
"closeDeletedFileTabs": true,
"customFileTypes": {
"source.ruby.rails": [
"rb"
],
"source.ruby.rspec": [
"_spec.rb"
]
},
"disabledPackages": [
"language-java",
"language-go",
"language-csharp",
"language-clojure",
"language-make",
"language-mustache",
"language-objective-c",
"language-perl",
"language-php",
"language-source",
"language-toml",
"metrics",
"bookmarks",
"script",
"move-panes",
"symbols-view",
"tree-view-git-modified",
"language-tmux",
"language-mjml",
"pretty-json",
"rspec-toggle-focus",
"ruby-block-converter",
"rufo-atom",
"archive-view",
"autoflow",
"language-gfm",
"emacs-core-keys",
"linter-jshint",
"atom-test-runner"
],
"followSymlinks": false,
"ignoredNames": [
"tags",
".git",
"tmp",
"log",
"coverage",
"build",
".tags",
".tags1",
"node_modules",
"spec/examples.txt",
"test/vcr_cassettes",
"spec/cassettes",
".DS_Store",
"public/packs"
],
"openEmptyEditorOnStart": false,
"packagesWithKeymapsDisabled": [
"highlight-selected"
],
"projectHome": "/Users/Thibaud/Codes",
"telemetryConsent": "limited",
"themes": [
"one-dark-ui",
"railscast-theme"
],
"uriHandlerRegistration": "always",
"useTreeSitterParsers": true
},
"editor": {
"fontFamily": "JetBrains Mono",
"fontSize": 13,
"invisibles": {},
"preferredLineLength": 120,
"showIndentGuide": true,
"softWrap": true,
"softWrapAtPreferredLineLength": true,
"softWrapHangingIndent": 120
},
"env-from-shell": {
"autoRun": true,
"debug": true
},
"exception-reporting": {
"userId": "95e7d744-4075-eb7f-fc4d-b7df413b5bf0"
},
"fuzzy-finder": {
"preserveLastSearch": true,
"searchAllPanes": true,
"useAlternateScoring": true
},
"git-log": {},
"github": {
"automaticCommitMessageWrapping": false
},
"guard-rspec": {
"command": "bundle exec guard"
},
"highlight-selected": {
"onlyHighlightWholeWords": false
},
"linter": {
"lintOnChangeInterval": 500,
"lintPreviewTabs": false
},
"linter-jshint": {
"lintInlineJavaScript": false
},
"linter-rubocop": {
"command": "bundle exec rubocop",
"disableWhenNoConfigFile": true,
"runExtraRailsCops": true
},
"linter-ruby": {
"rubyExecutablePath": "/Users/Thibaud/.rubies/ruby-2.6.5/bin/ruby"
},
"linter-scss-lint": {
"disableWhenNoConfigFileInPath": true
},
"linter-stylelint": {
"disableWhenNoConfig": false,
"useStandard": true
},
"linter-ui-default": {
"panelHeight": 135,
"showProviderName": true,
"showStatusBar": false,
"statusBarPosition": "Right",
"statusBarRepresents": "Current File",
"useBusySignal": false
},
"markdown-preview": {},
"markdown-writer": {
"fileExtension": ".md"
},
"one-dark-ui": {
"fontSize": 12
},
"platformio-ide-terminal": {
"ansiColors": {
"normal": {}
},
"core": {
"mapTerminalsToAutoOpen": true
},
"style": {
"animationSpeed": 0,
"defaultPanelHeight": "400px",
"fontFamily": "SF Mono",
"fontSize": "14",
"theme": "solarized-dark"
},
"toggles": {
"autoClose": true,
"cursorBlink": false,
"loginShell": false,
"runInsertedText": false
}
},
"prettier-atom": {
"formatOnSaveOptions": {
"enabled": true,
"excludedGlobs": [
"*.less"
],
"showInStatusBar": true
},
"prettierEslintOptions": {
"prettierLast": true
},
"useEslint": true,
"useStylelint": true
},
"rails-rspec": {},
"rails-transporter": {},
"rspec": {
"command": "bin/rspec",
"save_before_run": true,
"split": "down"
},
"rspec-tree-runner": {
"changeToSpecFileOnClick": false,
"showRSpecWarningMessages": false
},
"ruby-test": {
"minitestAllCommand": "bin/rails test test",
"minitestFileCommand": "bin/rails test {relative_path}",
"minitestSingleCommand": "bin/rails test {relative_path}:{line_number}",
"rspecAllCommand": "bin/rspec spec",
"rspecFileCommand": "bin/rspec {relative_path}",
"rspecSingleCommand": "bin/rspec {relative_path}:{line_number}",
"shell": "fish",
"specFramework": "rspec",
"testAllCommand": "bin/rails test",
"testFileCommand": "bin/rails {relative_path}",
"testFramework": "minitest"
},
"scroll-through-time": {
"autoToggle": false
},
"seti-syntax": {
"themeColor": "Purple"
},
"seti-ui": {
"font": "Default Atom Font",
"themeColor": "Red"
},
"status-bar": {},
"sync-settings": {
"quietUpdateCheck": true,
"removeObsoletePackages": true
},
"tabs": {
"enableVcsColoring": true
},
"tree-view": {
"hideIgnoredNames": true,
"squashDirectoryNames": true
},
"unity-ui": {
"colorStatusIndicatorsInTreeView": true,
"showIcons": true
},
"welcome": {
"showOnStartup": false
},
"whitespace": {
"ignoreWhitespaceOnCurrentLine": false,
"removeTrailingWhitespace": true
},
"zentabs": {
"maximumOpenedTabs": 7,
"neverCloseDirty": true,
"neverCloseNew": true,
"neverCloseUnsaved": true
}
}
# 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'
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
/*
* 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, .tool-panel, .status-bar, linter-panel, .panes {
background-color: #2b2b2b;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: hsl(180, 24%, 12%);
font-weight: bold;
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
// border-color: red;
}
.script-view .line {
font-size: 13px;
}
.platformio-ide-terminal .xterm {
background-color: #2b2b2b;
::selection {
background-color: #2b2b2b;
}
.terminal-cursor {
background-color: #2b2b2b;
}
}
/* -- multiple panes -- */
atom-pane-axis atom-pane.pane:not(.active) {
opacity: 0.5;
}
// RSpec console
.rspec-console.rspec {
background: #2b2b2b;
.rspec-output {
background: #2b2b2b;
font-family: 'SF Mono';
font-size: 13px;
font-weight: bold;
}
.rspec-color.tty-32 {
color: #a5c261;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment