Skip to content

Instantly share code, notes, and snippets.

@bowmanmc
Last active January 9, 2017 14:21
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 bowmanmc/71244ab293874eb5e7c098943fd1f9ee to your computer and use it in GitHub Desktop.
Save bowmanmc/71244ab293874eb5e7c098943fd1f9ee to your computer and use it in GitHub Desktop.
Atom on Windows - add emacs-lite keybindings (mimic mac behavior)
atom.commands.add 'atom-text-editor', 'custom:cut-copy-line', ->
editor = atom.workspace.getActiveTextEditor()
editor.selectLinesContainingCursors()
editor.cutSelectedText()
'atom-text-editor':
'ctrl-n': 'core:move-down'
'ctrl-p': 'core:move-up'
'ctrl-f': 'core:move-right'
'ctrl-b': 'core:move-left'
'ctrl-e': 'editor:move-to-end-of-screen-line'
'ctrl-a': 'editor:move-to-first-character-of-line'
'ctrl-k': 'custom:cut-copy-line'
'ctrl-y': 'core:paste'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment