This repository has been archived by the owner on May 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
emacs-core-keys.cson
107 lines (94 loc) · 3.39 KB
/
emacs-core-keys.cson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
'body.platform-darwin, body.platform-win32, body.platform-linux':
# disable default ctrl-k keybindings
'ctrl-k ctrl-b': 'unset!'
# override bindings from fuzzy-finder package
'ctrl-p': 'core:move-up'
# recreate emacs bindings
'ctrl-g': 'core:cancel'
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor':
# disable default ctrl-k keybindings
'ctrl-k ctrl-d': 'unset!'
# override bindings from find-and-replace package
'ctrl-d': 'core:delete'
'ctrl-e': 'editor:move-to-end-of-screen-line'
'body':
# disable default ctrl-k keybindings
"ctrl-k up": "unset!"
"ctrl-k down": "unset!"
"ctrl-k left": "unset!"
"ctrl-k right": "unset!"
"ctrl-k ctrl-w": "unset!"
"ctrl-k alt-ctrl-w": "unset!"
"ctrl-k ctrl-p": "unset!"
"ctrl-k ctrl-n": "unset!"
"ctrl-k ctrl-up": "unset!"
"ctrl-k ctrl-down": "unset!"
"ctrl-k ctrl-left": "unset!"
"ctrl-k ctrl-right": "unset!"
# recreate emacs bindings
'alt-w': 'core:copy'
'alt-x': 'command-palette:toggle'
'ctrl-n': 'core:move-down'
'ctrl-w': 'core:cut'
'ctrl-x 0': 'pane:close'
'ctrl-x 1': 'pane:close-other-items'
'ctrl-x 2': 'pane:split-down'
'ctrl-x 3': 'pane:split-right'
'ctrl-x b': 'fuzzy-finder:toggle-buffer-finder'
'ctrl-x ctrl-f': 'fuzzy-finder:toggle-file-finder'
'ctrl-x k': 'core:close'
'ctrl-x o': 'window:focus-next-pane'
'atom-workspace atom-text-editor':
# disable default ctrl-k keybindings
"ctrl-k ctrl-u": "unset!"
"ctrl-k ctrl-l": "unset!"
# recreate emacs bindings
'alt-;': 'editor:toggle-line-comments'
'alt-.': 'symbols-view:toggle-file-symbols'
'alt-{': 'editor:move-to-beginning-of-previous-paragraph'
'alt-}': 'editor:move-to-beginning-of-next-paragraph'
'alt-/': 'autocomplete:toggle'
'alt-<': 'core:move-to-top'
'alt->': 'core:move-to-bottom'
'alt-b': 'editor:move-to-beginning-of-word'
'alt-backspace': 'editor:delete-to-beginning-of-word'
'alt-d': 'editor:delete-to-end-of-word'
'alt-f': 'editor:move-to-end-of-word'
'alt-g alt-g': 'go-to-line:toggle'
'alt-m': 'editor:move-to-first-character-of-line'
'alt-q': 'autoflow:reflow-selection'
'alt-v': 'core:page-up'
'ctrl-_': 'core:undo'
'ctrl-/': 'core:undo'
'ctrl-a': 'editor:move-to-beginning-of-line'
'ctrl-b': 'core:move-left'
'ctrl-f': 'core:move-right'
'ctrl-g': 'core:cancel'
'ctrl-j': 'editor:newline'
'ctrl-r': 'find-and-replace:show'
'ctrl-s': 'find-and-replace:show'
'ctrl-shift-backspace': 'editor:delete-line'
'ctrl-t': 'editor:transpose'
'ctrl-v': 'core:page-down'
'ctrl-x ctrl-c': 'core:close'
'ctrl-x ctrl-l': 'editor:lower-case'
'ctrl-x ctrl-s': 'core:save'
'ctrl-x ctrl-u': 'editor:upper-case'
'ctrl-x h': 'core:select-all'
'ctrl-x s': 'window:save-all'
'ctrl-y': 'core:paste'
# disabled because the semantics are slightly different than emacs
#'ctrl-l': 'editor:scroll-to-cursor'
#'ctrl-o': 'editor:newline-above'
"atom-workspace atom-text-editor:not([mini])":
# disable default ctrl-k keybindings
"ctrl-k ctrl-0": "unset!"
"ctrl-k ctrl-1": "unset!"
"ctrl-k ctrl-2": "unset!"
"ctrl-k ctrl-3": "unset!"
"ctrl-k ctrl-4": "unset!"
"ctrl-k ctrl-5": "unset!"
"ctrl-k ctrl-6": "unset!"
"ctrl-k ctrl-7": "unset!"
"ctrl-k ctrl-8": "unset!"
"ctrl-k ctrl-9": "unset!"