Skip to content

Instantly share code, notes, and snippets.

@goldsborough
Created February 10, 2017 13:36
Show Gist options
  • Save goldsborough/5c3f41c432433914d2e376cf00ee069a to your computer and use it in GitHub Desktop.
Save goldsborough/5c3f41c432433914d2e376cf00ee069a to your computer and use it in GitHub Desktop.
# 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:
# * 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 in the
# Atom Flight Manual:
# https://atom.io/docs/latest/using-atom-basic-customization#cson
'.platform-darwin atom-text-editor':
'ctrl-alt-up': 'pane:split-right'
'ctrl-alt-down': 'pane:close'
'cmd-b': 'script:run'
'cmd-i': 'editor:auto-indent'
'cmd-k cmd-c': 'atomic-emacs:capitalize-word-or-atom'
'alt-t': 'tabs:close-all-tabs'
"region-workspace atom-text-editor:not([mini])[data-grammar~='gfm']":
"ctrl-enter": "markdown-writer:insert-new-line"
"ctrl-tab" : "markdown-writer:indent-list-line"
"atom-workspace":
"ctrl-alt-g": "golang:toggle-panel"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment