Skip to content

Instantly share code, notes, and snippets.

@bangedorrunt
Last active December 13, 2015 07:52
Show Gist options
  • Save bangedorrunt/6e943f093f5cab8ec009 to your computer and use it in GitHub Desktop.
Save bangedorrunt/6e943f093f5cab8ec009 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-text-editor':
'ctrl-j': 'core:move-down'
'ctrl-k': 'core:move-up'
'ctrl-g': 'core:cancel'
'cmd-alt-shift-ctrl q': 'core:cancel'
'ctrl-n': 'find-and-replace:find-next'
'ctrl-p': 'find-and-replace:find-previous'
# Multiple selection settings
'cmd-alt-shift-ctrl-j': 'editor:add-selection-below'
'cmd-alt-shift-ctrl-k': 'editor:add-selection-above'
'cmd-alt-shift-ctrl-m': 'find-and-replace:select-next'
'cmd-alt-shift-ctrl-u': 'find-and-replace:select-skip'
# Remap `escape` to `jk`
'atom-text-editor.vim-mode.insert-mode':
'j k': 'vim-mode:activate-normal-mode'
'.command-palette, .fuzzy-finder, .find-and-replace, .project-find':
'j k': 'core:cancel'
# Remap `f` to `jumpy`
'atom-text-editor:not(.mini).vim-mode:not(.insert-mode):not(.jumpy-jump-mode)':
'f': 'jumpy:toggle'
# Workaround for buffer which does not use `vim-mode`
# such as: `Project Find Results`, `Preferences`
'.results-view, .settings-view':
'space b d': 'core:close'
'space b n': 'pane:show-next-item'
'space b p': 'pane:show-previous-item'
'space f d': 'core:close'
'space f n': 'pane:show-next-item'
'space f p': 'pane:show-previous-item'
'atom-text-editor:not(.mini).vim-mode.normal-mode':
# Atom `cmd-p` overlay
'space :': 'command-palette:toggle'
# Find and replace
# Reference: https://goo.gl/576rfc
# Buffer find and replace
#'/': 'find-and-replace:show'
#'?': 'find-and-replace:show'
'space s b': 'find-and-replace:show'
# Project find and replace
'space s p': 'project-find:show'
# Buffer settings
# Reference: https://goo.gl/mFTqYH
# Buffer and file are interchangeable
'space f o': 'application:new-file'
'space f b': 'fuzzy-finder:toggle-buffer-finder'
'space f f': 'fuzzy-finder:toggle-file-finder'
'space f d': 'tabs:close-tab'
'space f k': 'tabs:close-other-tabs'
'space f K': 'tabs:close-all-tabs'
'space f n': 'pane:show-next-item'
'space f p': 'pane:show-previous-item'
'space f s': 'core:save'
'space f S': 'core:save-as'
'space b o': 'application:new-file'
'space b b': 'fuzzy-finder:toggle-buffer-finder'
'space b f': 'fuzzy-finder:toggle-file-finder'
'space b d': 'tabs:close-tab'
'space b k': 'tabs:close-other-tabs'
'space b K': 'tabs:close-all-tabs'
'space b n': 'pane:show-next-item'
'space b p': 'pane:show-previous-item'
'space b s': 'core:save'
'space b S': 'core:save-as'
# Project settings
'space p f': 'fuzzy-finder:toggle-file-finder'
'space p p': 'project-manager:list-projects'
'space p s': 'project-manager:save-project'
'space p e': 'project-manager:edit-projects'
'space p a': 'application:add-project-folder'
'space p t': 'tree-view:toggle'
# Window settings
'space w s': 'pane:split-right'
'space w v': 'pane:split-down'
'space w c': 'pane:close'
'space w h': 'window:focus-pane-on-left'
'space w l': 'window:focus-pane-on-right'
'space w j': 'window:focus-pane-below'
'space w k': 'window:focus-pane-above'
'space w f n': 'application:new-window'
'space w f c': 'window:close'
# Git settings
# TODO: remap `git-plus` plugin
'space g': 'git-plus:menu'
# Toggle settings
# TODO: remap toggle
# Help settings
'space h s': 'settings-view:open'
'space h k': 'settings-view:show-keybindings'
'space h i': 'settings-view:install-packages-and-themes'
'space h p': 'settings-view:uninstall-packages'
'space h t': 'settings-view:uninstall-themes'
[
{
"name": "apathy-theme",
"version": "1.10.3",
"theme": "syntax"
},
{
"name": "atom-beautify",
"version": "0.28.19"
},
{
"name": "atom-gooey-syntax",
"version": "0.2.1",
"theme": "syntax"
},
{
"name": "color-picker",
"version": "2.0.14"
},
{
"name": "ex-mode",
"version": "0.7.0"
},
{
"name": "file-icons",
"version": "1.6.13"
},
{
"name": "git-plus",
"version": "5.6.10"
},
{
"name": "jumpy",
"version": "2.0.10"
},
{
"name": "key-peek",
"version": "0.2.7"
},
{
"name": "language-rust",
"version": "0.4.5"
},
{
"name": "linter",
"version": "1.11.3"
},
{
"name": "linter-csslint",
"version": "1.1.0"
},
{
"name": "linter-eslint",
"version": "5.2.6"
},
{
"name": "linter-htmlhint",
"version": "0.2.1"
},
{
"name": "linter-rust",
"version": "0.3.0"
},
{
"name": "linter-scss-lint",
"version": "2.4.0"
},
{
"name": "native-ui",
"version": "0.10.0",
"theme": "ui"
},
{
"name": "nucleus-dark-ui",
"version": "0.6.14",
"theme": "ui"
},
{
"name": "pigments",
"version": "0.19.3"
},
{
"name": "project-manager",
"version": "2.6.5"
},
{
"name": "sync-settings",
"version": "0.6.0"
},
{
"name": "vim-mode",
"version": "0.63.0"
},
{
"name": "atom-dark-syntax",
"version": "0.27.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.51.0",
"theme": "ui"
},
{
"name": "atom-light-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.43.0",
"theme": "ui"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.1.5",
"theme": "ui"
},
{
"name": "one-dark-syntax",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "one-light-syntax",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.1.5",
"theme": "ui"
},
{
"name": "solarized-dark-syntax",
"version": "0.39.0",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "0.23.0",
"theme": "syntax"
},
{
"name": "about",
"version": "1.1.0"
},
{
"name": "archive-view",
"version": "0.61.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.9.2"
},
{
"name": "autocomplete-css",
"version": "0.11.0"
},
{
"name": "autocomplete-html",
"version": "0.7.2"
},
{
"name": "autocomplete-plus",
"version": "2.23.0"
},
{
"name": "autocomplete-snippets",
"version": "1.8.0"
},
{
"name": "autoflow",
"version": "0.26.0"
},
{
"name": "autosave",
"version": "0.23.0"
},
{
"name": "background-tips",
"version": "0.26.0"
},
{
"name": "bookmarks",
"version": "0.38.0"
},
{
"name": "bracket-matcher",
"version": "0.79.0"
},
{
"name": "command-palette",
"version": "0.37.0"
},
{
"name": "deprecation-cop",
"version": "0.54.0"
},
{
"name": "dev-live-reload",
"version": "0.47.0"
},
{
"name": "encoding-selector",
"version": "0.21.0"
},
{
"name": "exception-reporting",
"version": "0.37.0"
},
{
"name": "find-and-replace",
"version": "0.194.0"
},
{
"name": "fuzzy-finder",
"version": "0.93.0"
},
{
"name": "git-diff",
"version": "0.57.0"
},
{
"name": "go-to-line",
"version": "0.30.0"
},
{
"name": "grammar-selector",
"version": "0.48.0"
},
{
"name": "image-view",
"version": "0.56.0"
},
{
"name": "incompatible-packages",
"version": "0.25.0"
},
{
"name": "line-ending-selector",
"version": "0.3.0"
},
{
"name": "link",
"version": "0.31.0"
},
{
"name": "markdown-preview",
"version": "0.156.1"
},
{
"name": "metrics",
"version": "0.53.0"
},
{
"name": "notifications",
"version": "0.62.1"
},
{
"name": "open-on-github",
"version": "0.40.0"
},
{
"name": "package-generator",
"version": "0.41.0"
},
{
"name": "release-notes",
"version": "0.53.0"
},
{
"name": "settings-view",
"version": "0.232.0"
},
{
"name": "snippets",
"version": "1.0.1"
},
{
"name": "status-bar",
"version": "0.80.0"
},
{
"name": "styleguide",
"version": "0.45.0"
},
{
"name": "symbols-view",
"version": "0.110.1"
},
{
"name": "tabs",
"version": "0.88.0"
},
{
"name": "timecop",
"version": "0.33.0"
},
{
"name": "tree-view",
"version": "0.198.0"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "welcome",
"version": "0.32.0"
},
{
"name": "whitespace",
"version": "0.32.0"
},
{
"name": "wrap-guide",
"version": "0.38.1"
},
{
"name": "language-c",
"version": "0.49.0"
},
{
"name": "language-clojure",
"version": "0.18.0"
},
{
"name": "language-coffee-script",
"version": "0.45.0"
},
{
"name": "language-csharp",
"version": "0.11.0"
},
{
"name": "language-css",
"version": "0.35.0"
},
{
"name": "language-gfm",
"version": "0.81.0"
},
{
"name": "language-git",
"version": "0.10.0"
},
{
"name": "language-go",
"version": "0.40.0"
},
{
"name": "language-html",
"version": "0.42.0"
},
{
"name": "language-hyperlink",
"version": "0.15.0"
},
{
"name": "language-java",
"version": "0.16.1"
},
{
"name": "language-javascript",
"version": "0.100.0"
},
{
"name": "language-json",
"version": "0.17.1"
},
{
"name": "language-less",
"version": "0.28.3"
},
{
"name": "language-make",
"version": "0.20.0"
},
{
"name": "language-mustache",
"version": "0.13.0"
},
{
"name": "language-objective-c",
"version": "0.15.0"
},
{
"name": "language-perl",
"version": "0.31.0"
},
{
"name": "language-php",
"version": "0.34.0"
},
{
"name": "language-property-list",
"version": "0.8.0"
},
{
"name": "language-python",
"version": "0.41.0"
},
{
"name": "language-ruby",
"version": "0.62.0"
},
{
"name": "language-ruby-on-rails",
"version": "0.24.0"
},
{
"name": "language-sass",
"version": "0.43.0"
},
{
"name": "language-shellscript",
"version": "0.20.0"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.19.0"
},
{
"name": "language-text",
"version": "0.7.0"
},
{
"name": "language-todo",
"version": "0.27.0"
},
{
"name": "language-toml",
"version": "0.16.0"
},
{
"name": "language-xml",
"version": "0.34.0"
},
{
"name": "language-yaml",
"version": "0.24.0"
}
]
# projects.cson (not found)
{
"apathy-theme": {
"semanticHighlighting": false,
"enableLeftWrapGuide": false
},
"atom-beautify": {},
"autocomplete-plus": {},
"build": {
"stealFocus": false
},
"build-cargo": {
"cargoPath": "/usr/local/bin/cargo\n/usr/local/bin/cargo"
},
"core": {
"audioBeep": false,
"disabledPackages": [
"linter-bootlint",
"spell-check",
"racer",
"keybinding-resolver"
],
"projectHome": "/Users/panberry/projects",
"themes": [
"nucleus-dark-ui",
"atom-gooey-syntax"
]
},
"editor": {
"fontFamily": "Hack",
"fontSize": 18,
"invisibles": {},
"showIndentGuide": true,
"softWrap": true,
"softWrapAtPreferredLineLength": true,
"tabType": "soft"
},
"exception-reporting": {
"userId": "3170e32c-b281-37ed-06f2-375fc6bb9595"
},
"linter": {},
"linter-eslint": {
"disableWhenNoEslintrcFileInPath": true
},
"linter-htmlhint": {},
"linter-jshint": {
"disableWhenNoJshintrcFileInPath": true
},
"linter-rust": {
"buildTest": true,
"cargoPath": "/usr/local/bin/cargo",
"jobsNumber": 4,
"rustcPath": "/usr/local/bin/rustc"
},
"markdown-preview": {
"useGitHubStyle": true
},
"one-dark-ui": {
"layoutMode": "Spacious"
},
"one-light-ui": {
"layoutMode": "Spacious"
},
"pigments": {},
"project-manager": {
"environmentSpecificProjects": true
},
"racer": {
"racerBinPath": "/Users/panberry/.cargo/bin/racer",
"rustSrcPath": "/Users/panberry/rustc/src/",
"show": "Right"
},
"spell-check": {},
"tree-view": {},
"vim-mode": {
"useClipboardAsDefaultRegister": true,
"useSmartcaseForSearch": true,
"wrapLeftRightMotion": true
},
"welcome": {
"showOnStartup": false
},
"notifications": {},
"jumpy": {},
"whitespace": {
"ignoreWhitespaceOnCurrentLine": 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:
# https://atom.io/docs/latest/using-atom-basic-customization#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 {
// background-color: whitesmoke;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// 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;
}
atom-text-editor::shadow .source {
font-family: 'Hack' !important
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment