Skip to content

Instantly share code, notes, and snippets.

@calebmeyer
Last active January 31, 2020 03:02
Show Gist options
  • Save calebmeyer/243c4d74cf6fee2de9729e99ffc3cc46 to your computer and use it in GitHub Desktop.
Save calebmeyer/243c4d74cf6fee2de9729e99ffc3cc46 to your computer and use it in GitHub Desktop.
home computer
# 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()}"
# fix path issues for CLI binaries like jshint
# process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":")
# toggle the folding state of the row under the cursor
atom.commands.add 'atom-text-editor',
'editor:toggle-current-row-folding': (event) ->
editor = atom.workspace.getActiveTextEditor()
bufferRow = editor.bufferPositionForScreenPosition(editor.getCursorScreenPosition()).row
if editor.isFoldedAtBufferRow(bufferRow)
editor.unfoldBufferRow(bufferRow)
else
editor.foldBufferRow(bufferRow)
'editor:cargo-build': (event) ->
editor = atom.workspace.getActiveTextEditor()
atom.commands.dispatch(editor, 'platformio-ide-terminal:new')
atom.commands.dispatch(editor, 'platformio-ide-terminal:insert-custom-text-1')
'editor:cargo-run': (event) ->
editor = atom.workspace.getActiveTextEditor()
atom.commands.dispatch(editor, 'platformio-ide-terminal:new')
atom.commands.dispatch(editor, 'platformio-ide-terminal:insert-custom-text-2')
'settings:toggle-vcs-ignored': (event) ->
ignored = atom.config.get('core.excludeVcsIgnoredPaths')
atom.config.set('core.excludeVcsIgnoredPaths', !ignored)
atom.commands.add 'atom-workspace',
'dotfiles:open-init-script': ->
atom.workspace.open(process.env.HOME + '/.dotfiles/atom/init.coffee')
'dotfiles:open-keymap': ->
atom.workspace.open(process.env.HOME + '/.dotfiles/atom/keymap.cson')
'dotfiles:open-stylesheet': ->
atom.workspace.open(process.env.HOME + '/.dotfiles/atom/styles.less')
'buffer:delete-buffer': ->
atom.workspace.getActivePane().destroyActiveItem()
'window:close-other-windows': ->
BrowserWindow = require('electron').remote.BrowserWindow;
allWindows = BrowserWindow.getAllWindows()
currentWindow = BrowserWindow.getFocusedWindow()
window.close() for window in allWindows when window.id isnt currentWindow.id
consumeService = (packageName, providerName, fn) ->
disposable = atom.packages.onDidActivatePackage (pack) ->
if pack.name is packageName
service = pack.mainModule[providerName]()
fn(service)
disposable.dispose()
consumeService 'ex-mode', 'provideEx', (Ex) ->
# buffer delete
Ex.registerCommand 'bd', -> atom.workspace.getActivePane().destroyActiveItem()
Ex.registerCommand 'A', -> # A for alternate file (goes to spec)
currentView = atom.views.getView(atom.workspace.getActiveTextEditor())
atom.commands.dispatch(currentView, 'atom-spec-finder:toggle')
atom.workspace.observeTextEditors (editor) ->
atom.commands.dispatch(atom.views.getView(editor), 'line-ending-selector:convert-to-LF')
original = editor.getGrammar()
# all untitled editors are automatically ruby unless I say otherwise
if original? and original is atom.grammars.grammarForScopeName('text.plain.null-grammar')
editor.setGrammar(atom.grammars.grammarForScopeName('source.ruby'))
# also fold things automatically
fold_grammars = [
atom.grammars.grammarForScopeName('source.js.jsx')
atom.grammars.grammarForScopeName('source.ruby')
atom.grammars.grammarForScopeName('source.ruby.rails')
atom.grammars.grammarForScopeName('source.coffee')
]
if original? and original in fold_grammars
# use level 2 so class doesn't get folded, just methods
atom.commands.dispatch(atom.views.getView(editor), 'editor:fold-at-indent-level-2')
# 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/customizing-atom#customizing-key-bindings
# * https://atom.io/docs/latest/advanced/keymaps
#
# 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':
'ctrl-l': 'vim-mode-plus:redraw-cursor-line-at-upper-middle'
'ctrl-c': 'core:copy'
'atom-text-editor.vim-mode-plus.insert-mode:not(.mini)':
'j k': 'vim-mode-plus:activate-normal-mode'
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
'space space': 'command-palette:toggle'
'space c l': 'editor:toggle-line-comments'
'atom-text-editor.vim-mode-plus.normal-mode':
# leader commands, by starting letter
'space a t': 'platformio-ide-terminal:new' # applications/terminal
'space b b': 'fuzzy-finder:toggle-buffer-finder'
'space b n': 'pane:show-next-item'
'space b p': 'pane:show-previous-item'
'space b d': 'buffer:delete-buffer'
'space b D': 'tabs:close-all-tabs' # buffer Delete all
'space f a': 'atom-spec-finder:toggle' # find alternate file (spec or thing it describes)
'space f b': 'build:trigger' # file - build
'space f e d': 'dotfiles:open-init-script'
'space f e k': 'dotfiles:open-keymap'
'space f e s': 'dotfiles:open-stylesheet'
'space f f': 'editor:toggle-current-row-folding'
'space f s': 'core:save'
'space f t': 'atom-spec-finder:toggle' # find test file (or go back from test to code)
'space g b': 'git-blame:toggle'
'space g s': 'github:toggle-git-tab-focus'
'space g c j': 'git-plus:add-all-and-commit' # git commit jira on the command line
'space g p': 'git-plus:push-set-upstream'
'space g f': 'git-plus:pull'
'space g t': 'git-time-machine:toggle'
'space g l c': 'git-links:copy-absolute-link-for-current-commit'
'space g l f': 'git-links:copy-absolute-link-for-current-file'
'space g l l': 'git-links:copy-absolute-link-for-current-line'
'space j f': 'symbols-view:toggle-file-symbols' # jump to symbol in file
'space j j': 'symbols-view:toggle-project_symbols' # jump to any symbol
'space p s': 'application:reopen-project' # projects - switch
'space q a': 'tabs:close-all-tabs'
'space q q': 'application:quit'
'space q o': 'pane:close-other-items' # quit other tabs
'space r b': 'editor:cargo-build'
'space r f': 'run:file'
'space r r': 'editor:cargo-run'
'space s r': 'pane:split-right-and-move-active-item'
'space t a': 'rspec:run-all'
'space t f': 'rspec:run' # run the current file
'space t c': 'rspec:run-for-line' # run the current spec
'space T i': 'settings:toggle-vcs-ignored'
'space T f': 'hey-pane:toggle-focus-of-active-pane'
'space v': 'expand-region:expand'
'space w l': 'window:focus-pane-on-right'
'space w h': 'window:focus-pane-on-left'
'space w n': 'window:focus-next-pane'
'space w N': 'application:new-window'
'space w p': 'window:focus-previous-pane'
'space w r': 'window:reload'
'space w w': 'window:focus-next-pane'
'space w 1': 'window:close-other-windows'
'K': 'editor:newline' # mirrors J in vim mode, since there's no help yet
'F': 'editor:toggle-current-row-folding'
'tab': 'pane:show-next-item'
'shift-tab': 'pane:show-previous-item'
'atom-text-editor.vim-mode-plus.visual-mode':
'v': 'expand-region:expand'
'V': 'expand-region:shrink'
'/': 'project-find:show'
'ctrl-shift-l': 'editor:split-selections-into-lines'
'atom-workspace':
'ctrl-alt-cmd-i': 'settings:toggle-vcs-ignored'
'ctrl-p': 'fuzzy-finder:toggle-file-finder'
'ctrl-b': 'symbols-view:go-to-declaration'
'ctrl-~': 'terminal:open'
'.platform-darwin':
'cmd-b': 'symbols-view:go-to-declaration'
'cmd-k right': 'pane:split-right-moving-current-tab'
'ctrl-n': 'tree-view:toggle-focus'
'.tree-view':
'n': 'tree-view:add-file'
'.github-StagingView':
'c': 'core:focus-next' # commit
'd': 'github:discard-changes-in-selected-files'
'D': 'github:discard-all-changes'
'j': 'core:move-down'
'k': 'core:move-up'
'o': 'github:open-file'
's': 'core:confirm' # stage/unstage
'S': 'github:stage-all-changes'
'u': 'core:undo'
'U': 'github:unstage-all-changes'
'q': 'github:toggle-git-tab'
[
{
"name": "Zen",
"version": "0.18.0"
},
{
"name": "about",
"version": "1.9.1"
},
{
"name": "archive-view",
"version": "0.65.1"
},
{
"name": "ariake-dark-syntax",
"version": "0.2.1",
"theme": "syntax"
},
{
"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": "atom-panda-syntax",
"version": "0.18.0",
"theme": "syntax"
},
{
"name": "auto-update-plus",
"version": "0.5.8"
},
{
"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": "command-palette",
"version": "0.43.5"
},
{
"name": "dalek",
"version": "0.2.2"
},
{
"name": "dark-one-dark-syntax",
"version": "2.3.0",
"theme": "syntax"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.48.1"
},
{
"name": "duotone-dank-green-syntax",
"version": "0.0.0",
"theme": "syntax"
},
{
"name": "duotone-dark-amethyst-syntax",
"version": "2.0.4",
"theme": "syntax"
},
{
"name": "duotone-dark-earth-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duotone-dark-forest-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duotone-dark-red-syntax",
"version": "0.3.2",
"theme": "syntax"
},
{
"name": "duotone-dark-sea-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "duotone-snow",
"version": "2.2.0",
"theme": "syntax"
},
{
"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": "gist-it",
"version": "0.9.2"
},
{
"name": "git-diff",
"version": "1.3.9"
},
{
"name": "git-links",
"version": "0.3.3"
},
{
"name": "github",
"version": "0.31.1-2"
},
{
"name": "go-to-line",
"version": "0.33.0"
},
{
"name": "gradient-syntax-theme",
"version": "0.2.0",
"theme": "syntax"
},
{
"name": "grammar-selector",
"version": "0.50.1"
},
{
"name": "image-view",
"version": "0.64.0"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "keybinding-resolver",
"version": "0.39.0"
},
{
"name": "language-aspx",
"version": "0.5.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-fish-shell",
"version": "1.1.0"
},
{
"name": "language-gfm",
"version": "0.90.7"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.47.1"
},
{
"name": "language-haml",
"version": "0.32.1"
},
{
"name": "language-html",
"version": "0.53.0"
},
{
"name": "language-hyperlink",
"version": "0.17.1"
},
{
"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-liquid",
"version": "0.7.0"
},
{
"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-powershell",
"version": "5.0.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.53.3"
},
{
"name": "language-ruby",
"version": "0.72.22"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-rust",
"version": "0.4.12"
},
{
"name": "language-rust-bundled",
"version": "0.1.0"
},
{
"name": "language-sass",
"version": "0.62.1"
},
{
"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.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": "markdown-preview",
"version": "0.160.2"
},
{
"name": "metrics",
"version": "1.8.1"
},
{
"name": "minimap",
"version": "4.29.9"
},
{
"name": "monokai",
"version": "0.24.0",
"theme": "syntax"
},
{
"name": "nebula-syntax",
"version": "0.4.5",
"theme": "syntax"
},
{
"name": "nebula-ui",
"version": "0.9.3",
"theme": "ui"
},
{
"name": "nord-atom-syntax",
"version": "0.10.0",
"theme": "syntax"
},
{
"name": "nord-atom-ui",
"version": "0.12.0",
"theme": "ui"
},
{
"name": "northem-dark-atom-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"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": "open-recent",
"version": "5.0.0"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "platformio-ide-terminal"
},
{
"name": "rainglow",
"version": "1.5.5",
"theme": "syntax"
},
{
"name": "set-syntax",
"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": "spacemacs-dark-syntax",
"version": "0.5.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": "0.8.6"
},
{
"name": "tabs",
"version": "0.110.0"
},
{
"name": "teletype",
"version": "0.13.4"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "tree-view",
"version": "0.228.0"
},
{
"name": "update-package-dependencies",
"version": "0.13.1"
},
{
"name": "vim-mode-plus",
"version": "1.36.4"
},
{
"name": "vim-mode-plus-keymaps-for-surround",
"version": "0.2.1"
},
{
"name": "vim-mode-plus-macros",
"version": "0.1.2"
},
{
"name": "welcome",
"version": "0.36.9"
},
{
"name": "whitespace",
"version": "0.37.7"
},
{
"name": "wordcount",
"version": "3.1.0"
},
{
"name": "wrap-guide",
"version": "0.41.0"
}
]
{
"Zen": {
"showWordCount": "Right",
"width": 80
},
"accents-ui": {
"accentColor": {
"alpha": 1,
"blue": 200,
"green": 157,
"red": 50
},
"hexColor": "#329dc8"
},
"atom-beautify": {
"general": {
"_analyticsUserId": "095a40eb-6cc8-4637-ab7f-2770be2560be"
}
},
"atom-ide-ui": {
"use": {
"atom-ide-diagnostics": "never",
"atom-ide-diagnostics-ui": "never"
}
},
"atom-jshint": {
"hintOnModify": false
},
"autocomplete-plus": {
"fileBlacklist": [
".log"
]
},
"autosave": {
"enabled": true
},
"build": {
"panelVisibility": "Keep Visible",
"statusBar": "Right",
"statusBarPriority": 1
},
"build-cargo": {
"jsonErrorFormat": false,
"verbose": true
},
"color-picker": {
"preferredFormat": "HEX"
},
"core": {
"allowPendingPaneItems": false,
"disabledPackages": [
"spell-check"
],
"packagesWithKeymapsDisabled": [
"ruby-test-switcher",
"git-time-machine",
"git-blame",
"terminal-tab",
"hey-pane"
],
"telemetryConsent": "limited",
"themes": [
"one-dark-ui",
"atom-panda-syntax"
],
"uriHandlerRegistration": "always"
},
"editor": {
"fontFamily": "Source Code Pro",
"fontSize": 17,
"preferredLineLength": 120,
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true,
"softWrap": true,
"softWrapHangingIndent": 4,
"tabLength": 4
},
"exception-reporting": {
"userId": "a98159d9-1fe0-0af8-8f55-d78a80ba6738"
},
"filetype-color": {
"enabled": "false"
},
"find-and-replace": {
"focusEditorAfterSearch": true,
"projectSearchResultsPaneSplitDirection": "right"
},
"fuzzy-finder": {
"preserveLastSearch": true
},
"gist-it": {
"gitHubEnterpriseHost": "github.cerner.com",
"newGistsDefaultToPrivate": true,
"openAfterCreate": true,
"userToken": "4747d0ef16f5c1fef366edb7d816ab423092c16d"
},
"git-blame": {
"colorCommitAuthors": true,
"columnWidth": 286,
"customCommitUrlTemplateString": "https://github.cerner.com/<%- project %>/<%- repo %>/commit/<%- revision %>",
"useCustomUrlTemplateIfStandardRemotesFail": true
},
"git-plus": {
"experimental": {
"autoFetch": 15
},
"remoteInteractions": {
"pullBeforePush": true,
"pullRebase": true
}
},
"glowing-cursor": {
"cursorWidth": 2,
"glowColor": {
"alpha": 1,
"blue": 255,
"green": 213,
"red": 65
},
"innerColor": {
"alpha": 1,
"blue": 255,
"green": 213,
"red": 54
}
},
"isotope-ui": {
"backgroundColor": "false",
"backgroundImagePath": "/Users/cm022291/PIctures/rainy_night.png",
"customBackgroundColor": true,
"customBackgroundColorPicker": {
"alpha": 1,
"blue": 52,
"green": 39,
"red": 41
},
"fontFamily": "Ubuntu",
"fontWeight": "Regular",
"lowContrastTooltip": true,
"spaciousMode": true
},
"jshint": {
"validateOnlyOnSave": true
},
"line-ending-selector": {
"defaultLineEnding": "LF"
},
"linter": {
"clearOnChange": true,
"ignoredLinterErrors": [
"foodcritic"
],
"lintOnChange": false,
"statusBar": "Show error of the selected line"
},
"linter-jshint": {
"jshintExecutablePath": "/usr/local/bin/jshint"
},
"linter-ui-default": {
"panelHeight": 400
},
"minimap": {
"disablePythonDocLinks": true,
"plugins": {
"codeglance": true,
"codeglanceDecorationsZIndex": 0,
"cursorline": true,
"cursorlineDecorationsZIndex": 0,
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0,
"git-diff": true,
"git-diffDecorationsZIndex": 0,
"minimap-autohide": false,
"minimap-autohideDecorationsZIndex": 0
}
},
"minimap-codeglance": {
"numberOfLines": 9
},
"multi-wrap-guide": {
"columns": [
80,
120
],
"locked": true,
"silent": true
},
"nyan-indent": {
"color": "blue"
},
"omni-ruler": {
"columns": [
"80",
"120"
]
},
"one-dark-ui": {},
"open-recent": {
"listDirectoriesAddedToProject": true,
"maxRecentFiles": 20
},
"outline-selection": {
"outlineColor": "#33aaff",
"outlineOpacity": 0.75,
"outlineRadius": 2
},
"package-generator": {
"packageSyntax": "coffeescript"
},
"platformio-ide-terminal": {
"core": {
"scrollback": 10000
},
"customTexts": {
"customText1": "cargo build",
"customText2": "cargo run"
},
"style": {
"defaultPanelHeight": "45%"
},
"toggles": {
"autoClose": true
}
},
"racer": {
"cargoHome": "~/.cargo",
"racerBinPath": "/Users/cm022291/.cargo/bin/racer"
},
"rainglow": {
"SelectSyntax": "peacock-rainglow-syntax"
},
"remote-ftp": {
"statusbar": {
"enable": true
}
},
"rspec": {
"command": "bundle exec rspec"
},
"spell-check": {
"locales": [
"en-US",
"fr-FR"
],
"useLocales": false,
"useSystem": false
},
"split-diff": {
"diffWords": true,
"ignoreWhitespace": true,
"leftEditorColor": "red",
"rightEditorColor": "green",
"scrollSyncType": "Vertical + Horizontal",
"syncHorizontalScroll": true
},
"steam-pirate-ui": {
"blurBackground": "5"
},
"swackets": {
"colorParens": true,
"colorSquareBrackets": true,
"colors": [
"#c454bf",
"#429ada",
"#3dda3d",
"#f7f748",
"#e78326",
"#c40708"
]
},
"sync-settings": {
"gistDescription": "home computer",
"quietUpdateCheck": true
},
"term2": {
"cursorBlink": false,
"shellArguments": "--login"
},
"terminal-plus": {
"style": {
"animationSpeed": 2
},
"toggles": {
"autoClose": true,
"cursorBlink": false
}
},
"terminal-tab": {
"shellPath": "C:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe",
"shellSettings": {
"shellPath": "C:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
}
},
"title-bar-replacer": {
"colours": {
"baseColour": "#141516"
}
},
"tree-view": {
"focusOnReveal": false,
"squashDirectoryNames": true
},
"vim-mode": {
"useClipboardAsDefaultRegister": true,
"useSmartcaseForSearch": true
},
"vim-mode-plus": {
"automaticallyEscapeInsertModeOnActivePaneItemChange": true,
"keymapBackslashToInnerCommentOrParagraphWhenToggleLineCommentsIsPending": true,
"keymapCCToChangeInnerSmartWord": true,
"keymapPToPutWithAutoIndent": true,
"keymapUnderscoreToReplaceWithRegister": true,
"keymapYToYankToLastCharacterOfLine": true,
"showHoverSearchCounter": true,
"statusBarModeStringStyle": "long",
"useSmartcaseForSearch": true,
"useSmartcaseForSearchCurrentWord": true,
"wrapLeftRightMotion": true
},
"welcome": {
"showOnStartup": false
},
"whitespace": {
"ignoreWhitespaceOnCurrentLine": false
},
"wordcount": {
"goal": 2500,
"goalBgColor": "#550000",
"goalColor": "#00f000",
"noextension": true,
"showchars": 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'
#
# 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
'.source.js':
'Console log':
'prefix': 'con'
'body': "console.log(${1:''});$2"
'beforeEach':
'prefix': 'bef'
'body':'''
beforeEach(() => {
$1
});$2
'''
'describe':
'prefix': 'desc'
'body':'''
describe('${1:The thing described}', () => {
${2://body of the suite/context}
});$3
'''
'it':
'prefix': 'it'
'body':'''
it('${1:The test description}', () => {
${2://body of the test}
});$3
'''
'spyOn':
'prefix': 'spyOn'
'body': "spyOn(${1:window}, '${2:functionName}');"
'.source.ruby':
'Pry':
'prefix': 'pry'
'body': 'require "pry"; binding.pry'
'do..end':
'prefix': 'do'
'body': '''
do${1: |${2:param}|}
$3
end$4
'''
'context':
'prefix': 'con'
'body': '''
context '$1' do
$2
end$3
'''
'before':
'prefix': 'bef'
'body': '''
before do
$1
end
'''
'describe':
'prefix': 'desc'
'body': '''
describe '$1' do
$2
end$3
'''
'it':
'prefix': 'it'
'body': '''
it '$1' do
$2
end$3
'''
'let':
'prefix': 'let'
'body': '''
let(:$1) { $2 }$3
'''
'let params':
'prefix': 'letp'
'body': '''
let(:params) { { $1 } }$0
'''
'.source.python':
'Interact':
'prefix': 'interact'
'body': 'import code; code.interact(local=locals())'
'Pry':
'prefix': 'pry'
'body': 'from IPython import embed; embed()'
/*
* 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";
@import "syntax-variables";
@blueish: #00c4ff;
@batman-yellow: #FDE311;
@command-color: @batman-yellow;
@insert-color: #0F4;
@selection-color: #3AF;
atom-text-editor {
.gutter {
background-color: darken(@base-background-color, 2%);
.line-number.git-line-modified {
border-left: 2px solid @blueish;
}
}
.indent-guide {
color: lighten(@base-background-color, 5%);
}
.multi-wrap-guide-line {
background-color: lighten(@base-background-color, 5%) !important;
margin-left: 0.7em !important;
}
}
.tree-view {
.status-modified, .status-modified > * {
color: fadeOut(@blueish, 20%) !important;
}
}
// Use blue for modified rather than orange.
.minimap {
.git-line-modified{
background: fadeOut(@blueish, 50%);
}
}
.line-highlight(@color) {
.cursor-line {
// box-shadow: 0 0 1px @color;
background-color: fadeOut(@color, 95%);
}
}
// Make I-beam cursor the color I want
atom-text-editor.vim-mode-plus.insert-mode.editor {
.cursor {
border-color: @insert-color !important;
opacity: 1;
}
.line-highlight(@insert-color);
}
.block-cursor(@color) {
border: 1.5px solid @color !important;
border-radius: 3px;
box-shadow: 0 0 7px @color;
background: none !important;
opacity: 1 !important;
}
// Make block cursor more visible
atom-text-editor.vim-mode-plus.normal-mode.editor {
&.is-focused {
.line-highlight(@command-color);
.cursor { .block-cursor(@command-color) }
}
.cursor { .block-cursor(darken(desaturate(@command-color, 20%), 20%)) }
}
atom-text-editor.vim-mode-plus.visual-mode.editor {
.cursor { .block-cursor(@selection-color) }
}
atom-text-editor .selection .region {
background-color: darken(desaturate(@selection-color, 70%), 40%);
}
// Make Vim states more visible
.status-bar-vim-mode-plus-insert {
color: @insert-color;
}
.status-bar-vim-mode-plus-normal {
color: @command-color;
}
.status-bar-vim-mode-plus-visual {
color: @selection-color;
}
// terminal styles
terminal-view {
.xterm {
font-family: 'Source Code Pro', Consolas, monospace;
}
}
// https://discuss.atom.io/t/crazy-3d-angled-tree-view/18765
#atom-perspective() {
@viewing-distance: 12in;
@rotation: 20deg;
// .tree-view, .github-StubItem-git-tab-controller {
// Don't use this for views which aren't entirely read-only (like the git tab) since cursors don't render right.
.tree-view {
transform: translateY(-10vh) perspective(@viewing-distance) rotateY(@rotation);
padding-top: 12vh;
padding-bottom: 12vh;
transform-origin: left;
width: 120%;
height: 120%;
}
body atom-text-editor-minimap {
transform: perspective(@viewing-distance) rotateY(-@rotation);
transform-origin: right;
}
}
// Comment or uncomment the next line to control whether the atom-perspective feature is enabled
// #atom-perspective;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment