Skip to content

Instantly share code, notes, and snippets.

@felipecsl
Created June 12, 2017 06:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipecsl/8f926381a80b3e803dd3811135cca985 to your computer and use it in GitHub Desktop.
Save felipecsl/8f926381a80b3e803dd3811135cca985 to your computer and use it in GitHub Desktop.
Atom keymap
# 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
'atom-text-editor':
'cmd-backspace': 'editor:delete-line'
'ctrl-g': 'editor:select-line'
'cmd-l': 'go-to-line:toggle'
'': 'editor:move-to-previous-subword-boundary'
'atom-workspace atom-text-editor:not([mini])':
'alt-shift-up': 'editor:move-line-up'
'alt-shift-down': 'editor:move-line-down'
'cmd-d': 'editor:duplicate-lines'
'atom-text-editor[data-grammar~="haskell"]':
'escape': 'ide-haskell:close-tooltip' #this is set by default
'cmd-f2':'ide-haskell:next-error'
'cmd-shift-f2':'ide-haskell:prev-error'
'cmd-alt-l': 'ide-haskell:prettify-file'
'cmd-f3': 'haskell-ghc-mod:check-file'
'ctrl-alt-t': 'haskell-ghc-mod:show-type' #this is an example binding
'ctrl-alt-i': 'haskell-ghc-mod:show-info' #this is an example binding
'ctrl-alt-T': 'haskell-ghc-mod:insert-type' #this is an example binding
'ctrl-alt-b': 'haskell-ghc-mod:go-to-declaration'
# '': 'haskell-ghc-mod:lint-file'
# '': 'haskell-ghc-mod:case-split'
# '': 'haskell-ghc-mod:sig-fill'
# '': 'haskell-ghc-mod:show-info-fallback-to-type'
# '': 'haskell-ghc-mod:show-type-fallback-to-info'
# '': 'haskell-ghc-mod:show-type-and-info'
# '': 'haskell-ghc-mod:insert-import'
'atom-workspace':
'': 'haskell-ghc-mod:shutdown-backend'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment