Last active
January 9, 2017 14:21
-
-
Save bowmanmc/71244ab293874eb5e7c098943fd1f9ee to your computer and use it in GitHub Desktop.
Atom on Windows - add emacs-lite keybindings (mimic mac behavior)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
atom.commands.add 'atom-text-editor', 'custom:cut-copy-line', -> | |
editor = atom.workspace.getActiveTextEditor() | |
editor.selectLinesContainingCursors() | |
editor.cutSelectedText() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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