4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
7 # author Lars Gullik Bjønnes
8 # author Jean-Marc Lasgouttes
12 # author Jürgen Spitzmüller
13 # author Andrew Zabolotny
15 # Full author contact details are available in file CREDITS.
17 # This is the EMACS flavour bind file, based on the bindings found
18 # in the Emacs editor.
21 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
22 # with every new install of LyX and your changes will be lost.
23 # Instead, customize a copy of this file placed in
24 # ~/.lyx/bind/emacs.bind
30 \bind "C-~S-at" "mark-on"
31 \bind "C-a" "line-begin"
32 \bind "C-b" "char-backward"
33 #bind "C-c" "------" // used as users prefix
34 \bind "C-d" "char-delete-forward"
35 \bind "C-e" "line-end"
36 \bind "C-f" "char-forward"
40 \bind "C-h" "specialchar-insert hyphenation"
41 \bind "C-M-minus" "specialchar-insert nobreakdash"
42 \bind "C-i" "space-insert hfill"
43 \bind "C-j" "paragraph-break"
44 \bind "C-k" "line-delete-forward"
45 \bind "C-l" "screen-recenter"
46 \bind "C-m" "mark-toggle"
48 \bind "C-o" "inset-toggle"
50 # facemenu-menu in emacs
51 \bind "M-o" "inset-settings"
54 # this is "quoted-insert" a total different meaning from "quote-insert"
55 \bind "C-q" "self-insert \""
57 \bind "C-s" "dialog-show findreplace"
58 \bind "C-S-s" "dialog-show findreplaceadv"
59 \bind "M-~S-percent" "dialog-show findreplaceadv"
61 \bind "C-t" "chars-transpose"
63 # universal argument in emacs
64 \bind "C-u" "font-underline"
66 # better name would be "scroll-up" as in emacs
67 \bind "C-v" "screen-down"
73 #should be "lyx-iconify"
76 \bind "C-~S-slash" "undo"
77 \bind "C-~S-underscore" "undo"
79 \bind "~S-M-quotedbl" "quote-insert inner"
80 \bind "~S-C-quotedbl" "quote-insert outer auto plain"
82 \bind "C-x a" "buffer-auto-save"
83 #\bind "C-x b" "buffer-previous"
84 \bind "C-x d" "buffer-new"
85 \bind "C-x g" "buffer-view ps"
86 \bind "C-x k" "buffer-close"
87 \bind "C-x p" "buffer-view dvi"
88 \bind "C-x r" "buffer-update dvi"
89 # Should have been "buffer-write-some"
90 # \bind "C-x s" "buffer-write"
91 \bind "C-x t" "buffer-update dvi"
93 \bind "C-x v h" "dialog-show vclog"
94 \bind "C-x v v" "vc-check-in"
95 \bind "C-x v u" "vc-revert"
96 \bind "C-x v c" "vc-undo-last"
97 \bind "C-x v i" "vc-register"
98 \bind "C-x bracketleft" "screen-up"
99 \bind "C-x bracketright" "screen-down"
100 \bind "C-x C-a" "buffer-auto-save"
101 \bind "C-x C-b" "menu-open view"
102 \bind "C-x C-c" "lyx-quit"
103 \bind "C-x C-d" "buffer-new"
104 \bind "C-x C-f" "file-open"
105 \bind "C-x C-g" "buffer-view ps"
106 \bind "C-x C-p" "buffer-view dvi"
107 \bind "C-x C-q" "buffer-toggle-read-only"
108 #\bind "C-x C-r" "buffer-update dvi"
109 \bind "C-x C-s" "buffer-write"
110 \bind "C-x C-t" "buffer-update dvi"
111 \bind "C-Next" "buffer-next"
112 \bind "C-Prior" "buffer-previous"
113 \bind "S-F7" "thesaurus-entry"
114 \bind "S-F8" "dialog-show spellchecker"
115 \bind "C-x 0" "view-close"
118 \bind "C-x 5 2" "window-new"
119 \bind "C-x 5 0" "window-close"
122 # this is "upcase-region" in emacs
123 #\bind "C-x C-u" "undo"
124 \bind "C-x C-w" "buffer-write-as"
137 #bind "F1" "help" # Not yet implemented!
138 #bind "C-F1" "help-context" # Not yet implemented!
139 #\bind "F2" "buffer-write"
140 #\bind "F3" "file-open"
149 \bind "M-x" "command-execute"
150 \bind "C-M-o" "dialog-show toc"
152 \bind "M-equal" "buffer-zoom-in"
153 \bind "M-plus" "buffer-zoom-in"
154 \bind "M-minus" "buffer-zoom-out"
160 \bind "M-Up" "command-alternatives outline-up; paragraph-move-up; tabular-feature move-row-up"
161 \bind "M-Down" "command-alternatives outline-down; paragraph-move-down; tabular-feature move-row-down"
162 \bind "M-Right" "tabular-feature move-column-right"
163 \bind "M-Left" "tabular-feature move-column-left"
164 \bind "C-Right" "word-right"
165 \bind "C-Left" "word-left"
166 \bind "C-Up" "paragraph-up"
167 \bind "C-Down" "paragraph-down"
168 \bind "Home" "buffer-begin"
169 \bind "End" "buffer-end"
170 \bind "M-~S-less" "buffer-begin"
171 \bind "M-~S-greater" "buffer-end"
173 \bind "C-~S-greater" "label-goto"
174 \bind "C-~S-less" "bookmark-goto 0"
175 \bind "C-~S-1" "bookmark-goto 1"
176 \bind "C-~S-2" "bookmark-goto 2"
177 \bind "C-~S-3" "bookmark-goto 3"
178 \bind "C-~S-4" "bookmark-goto 4"
179 \bind "C-~S-5" "bookmark-goto 5"
180 \bind "C-~S-6" "bookmark-goto 6"
181 \bind "C-~S-7" "bookmark-goto 7"
182 \bind "C-~S-8" "bookmark-goto 8"
183 \bind "C-~S-9" "bookmark-goto 9"
184 \bind "C-M-~S-1" "bookmark-save 1"
185 \bind "C-M-~S-2" "bookmark-save 2"
186 \bind "C-M-~S-3" "bookmark-save 3"
187 \bind "C-M-~S-4" "bookmark-save 4"
188 \bind "C-M-~S-5" "bookmark-save 5"
189 \bind "C-M-~S-6" "bookmark-save 6"
190 \bind "C-M-~S-7" "bookmark-save 7"
191 \bind "C-M-~S-8" "bookmark-save 8"
192 \bind "C-M-~S-9" "bookmark-save 9"
194 # The below are xemacs bindings
195 #\bind "Home" "line-begin"
196 #\bind "End" "line-end"
197 #\bind "C-Home" "buffer-begin"
198 #\bind "C-End" "buffer-end"
202 # Motion + select group
205 \bind "S-Right" "char-right-select"
206 \bind "S-Left" "char-left-select"
207 \bind "S-C-F" "char-forward-select"
208 \bind "S-C-B" "char-backward-select"
209 \bind "S-Up" "up-select"
210 \bind "S-Down" "down-select"
211 \bind "S-C-Right" "word-right-select"
212 \bind "S-C-Left" "word-left-select"
213 \bind "S-C-A" "line-begin-select"
214 \bind "S-C-E" "line-end-select"
215 \bind "S-C-Up" "paragraph-up-select"
216 \bind "S-C-Down" "paragraph-down-select"
217 \bind "S-Home" "buffer-begin-select"
218 \bind "S-End" "buffer-end-select"
219 \bind "S-Prior" "screen-up-select"
220 \bind "S-Next" "screen-down-select"
221 \bind "S-C-Home" "buffer-begin-select"
222 \bind "S-C-End" "buffer-end-select"
228 \bind "C-Delete" "word-delete-forward"
229 \bind "M-d" "word-delete-forward"
230 \bind "C-BackSpace" "word-delete-backward"
231 \bind "M-Return" "paragraph-break inverse"
232 \bind "C-Return" "newline-insert newline"
233 \bind "C-S-Return" "newline-insert linebreak"
234 \bind "M-S-Right" "depth-increment"
235 \bind "M-S-Left" "depth-decrement"
236 \bind "C-S-L" "specialchar-insert ligature-break"
237 \bind "C-space" "command-alternatives math-space ; space-insert protected"
238 \bind "nobreakspace" "space-insert protected"
239 \bind "C-M-space" "space-insert normal"
240 \bind "S-C-space" "space-insert thin"
241 \bind "M-~S-slash" "specialchar-insert slash"
242 \bind "C-period" "specialchar-insert end-of-sentence"
243 \bind "M-period" "specialchar-insert dots"
245 \bind "Escape" "meta-prefix"
246 \bind "M-u" "word-upcase partial"
247 \bind "M-l" "word-lowcase partial"
248 # This conflicts with the character menu.
249 #bind "M-c" "word-capitalize partial"
251 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
252 \bind "S-KP_Right" "char-right-select"
253 \bind "S-KP_Left" "char-left-select"
254 \bind "S-KP_Up" "up-select"
255 \bind "S-KP_Down" "down-select"
256 \bind "S-C-KP_Right" "word-right-select"
257 \bind "S-C-KP_Left" "word-left-select"
258 \bind "S-C-KP_Up" "paragraph-up-select"
259 \bind "S-C-KP_Down" "paragraph-down-select"
260 \bind "S-KP_Home" "line-begin-select"
261 \bind "S-KP_End" "line-end-select"
262 \bind "S-KP_Prior" "screen-up-select"
263 \bind "S-KP_Next" "screen-down-select"
264 \bind "S-C-KP_Home" "buffer-begin-select"
265 \bind "S-C-KP_End" "buffer-end-select"
266 \bind "S-C-KP_Prior" "buffer-move-previous"
267 \bind "S-C-KP_Next" "buffer-move-next"
268 \bind "C-x h" "command-sequence buffer-begin ; buffer-end-select" # select all
269 \bind "M-h" "inset-select-all"
270 \bind "C-KP_Insert" "copy"
271 \bind "S-KP_Insert" "paste"
272 \bind "S-KP_Delete" "cut"
275 # Include menu and math bindings
277 \bind_file menus.bind
279 \bind_file latinkeys.bind
280 \bind_file cyrkeys.bind
281 \bind_file greekkeys.bind
283 # the following bindings have to be adapted w.r.t. menus.bind
284 \bind "M-c Down" "word-lowcase partial"
285 \bind "M-c Up" "word-upcase partial"
286 \bind "M-c Right" "word-capitalize partial"