Skip to content

Instantly share code, notes, and snippets.

@jmewes

jmewes/notes.txt Secret

Last active June 29, 2019 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmewes/ab9a892ca16916c357f87872ccf2efc1 to your computer and use it in GitHub Desktop.
Save jmewes/ab9a892ca16916c357f87872ccf2efc1 to your computer and use it in GitHub Desktop.
Custom keymap for Linux
# 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:
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#customizing-keybindings
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * http://flight-manual.atom.io/hacking-atom/sections/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:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#configuring-with-cson
'atom-workspace atom-text-editor:not([mini])':
'ctrl-a': 'editor:move-to-first-character-of-line'
'ctrl-shift-a': 'editor:select-to-beginning-of-line'
'ctrl-e': 'editor:move-to-end-of-screen-line'
'ctrl-shift-e': 'editor:select-to-end-of-line'
'ctrl-p': 'core:move-up'
'ctrl-n': 'core:move-down'
'ctrl-d': 'editor:duplicate-lines'
'ctrl-d': 'editor:duplicate-lines'
'ctrl-k': 'editor:cut-to-end-of-line'
'ctrl-shift-k': 'editor:delete-line'
@jmewes
Copy link
Author

jmewes commented Jun 3, 2018

1.27.2

'atom-text-editor':
  'ctrl-k': 'editor:cut-to-end-of-line'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment