Skip to content

Instantly share code, notes, and snippets.

@slobich
Created January 30, 2020 16:07
Show Gist options
  • Save slobich/3d02bb6105f1dd6fb08bde88d44f8589 to your computer and use it in GitHub Desktop.
Save slobich/3d02bb6105f1dd6fb08bde88d44f8589 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
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on OS X and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * https://atom.io/docs/latest/hacking-atom-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:
# https://atom.io/docs/latest/using-atom-basic-customization#cson
# Atom aligner
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor':
'ctrl-alt-a': 'aligner:align'
# Run beutify
'ctrl-shift-b': 'atom-beautify:beautify-editor'
# Open in browser
'atom-text-editor':
'alt-shift-b': 'open-in-browser:open'
# SVG preview
'atom-workspace':
'alt-shift-o': 'svg-preview:toggle'
# Emmet
# Emmet Tabexpand and wrap lines with abbreviation
'atom-text-editor:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'ctrl-shift-w': 'emmet:wrap-with-abbreviation'
# Disable Emmet from turning everything in html tags (ie: php in to <php></php>)
'.pane .editor:not(.mini)':
'tab': 'snippets:expand'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment