2 # ==================================================================
4 # LyX, the High Level Word Processor
6 # Copyright 1995-2000 The LyX Team
8 # THIS FILE DEFINES THE EMACS LYX BINDINGS
10 # ==================================================================
13 # This is the EMACS flavour bind file, based on the bindings found
14 # in the Emacs editor.
17 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
18 # with every new install of LyX and your changes will be lost.
19 # Instead, customize a copy of this file placed in
20 # ~/.lyx/bind/emacs.bind
24 \bind "C-~S-at" "mark-on"
25 \bind "C-a" "line-begin"
26 \bind "C-b" "char-backward"
27 #bind "C-c" "------" // used as users prefix
28 \bind "C-d" "delete-forward"
29 \bind "C-e" "line-end"
30 \bind "C-f" "char-forward"
34 \bind "C-h" "hyphenation-point-insert"
35 \bind "C-i" "hfill-insert"
37 \bind "C-k" "line-delete-forward"
38 \bind "C-l" "screen-recenter"
39 \bind "C-m" "mark-toggle"
41 \bind "C-o" "open-stuff"
44 # this is "quoted-insert" a total different meaning from "quote-insert"
45 \bind "C-q" "quote-insert"
47 \bind "C-s" "find-replace"
48 \bind "M-~S-percent" "find-replace"
50 # should be "chars-transpose" (swaps two chars)
53 # universal argument in emacs
54 \bind "C-u" "font-underline"
56 # better name would be "scroll-up" as in emacs
57 \bind "C-v" "screen-down"
62 \bind "C-S-Y" "layout-paste"
64 #should be "lyx-iconify"
67 \bind "C-~S-slash" "undo"
68 \bind "C-~S-underscore" "undo"
70 \bind "S-C-quotedbl" "quote-insert"
72 \bind "C-x a" "buffer-auto-save"
73 #\bind "C-x b" "buffer-previous"
74 \bind "C-x d" "buffer-new"
75 \bind "C-x g" "buffer-view ps"
76 \bind "C-x k" "buffer-close"
77 \bind "C-x p" "buffer-view dvi"
78 \bind "C-x r" "buffer-update dvi"
79 # Should have been "buffer-write-some"
80 # \bind "C-x s" "buffer-write"
81 \bind "C-x t" "buffer-update dvi"
83 \bind "C-x v h" "vc-history"
84 \bind "C-x v v" "vc-check-in"
85 \bind "C-x v u" "vc-revert"
86 \bind "C-x v c" "vc-undo-last"
87 \bind "C-x v i" "vc-register"
88 \bind "C-x bracketleft" "screen-up"
89 \bind "C-x bracketright" "screen-down"
90 \bind "C-x C-a" "buffer-auto-save"
91 \bind "C-x C-b" "menu-open Documents"
92 \bind "C-x C-c" "lyx-quit"
93 \bind "C-x C-d" "buffer-new"
94 \bind "C-x C-f" "buffer-open"
95 \bind "C-x C-g" "buffer-view ps"
96 \bind "C-x C-p" "buffer-view dvi"
97 \bind "C-x C-q" "buffer-toggle-read-only"
98 #\bind "C-x C-r" "buffer-update dvi"
99 \bind "C-x C-s" "buffer-write"
100 \bind "C-x C-t" "buffer-update dvi"
103 # this is "upcase-region" in emacs
104 #\bind "C-x C-u" "undo"
105 \bind "C-x C-w" "buffer-write-as"
118 #bind "F1" "help" # Not yet implemented!
119 #bind "C-F1" "help-context" # Not yet implemented!
120 #\bind "F2" "buffer-write"
121 #\bind "F3" "buffer-open"
130 \bind "M-x" "command-execute"
137 \bind "C-Right" "word-forward"
138 \bind "C-Left" "word-backward"
139 \bind "C-Up" "paragraph-up"
140 \bind "C-Down" "paragraph-down"
141 \bind "Home" "buffer-begin"
142 \bind "End" "buffer-end"
144 \bind "C-~S-greater" "reference-goto"
145 \bind "C-~S-less" "reference-back"
148 # The below are xemacs bindings
149 #\bind "Home" "line-begin"
150 #\bind "End" "line-end"
151 #\bind "C-Home" "buffer-begin"
152 #\bind "C-End" "buffer-end"
156 # Motion + select group
159 \bind "S-Right" "forward-select"
160 \bind "S-Left" "backward-select"
161 \bind "S-C-F" "forward-select"
162 \bind "S-C-B" "backward-select"
163 \bind "S-Up" "up-select"
164 \bind "S-Down" "down-select"
165 \bind "S-C-Right" "word-forward-select"
166 \bind "S-C-Left" "word-backward-select"
167 \bind "S-C-A" "line-begin-select"
168 \bind "S-C-E" "line-end-select"
169 \bind "S-C-Up" "paragraph-up-select"
170 \bind "S-C-Down" "paragraph-down-select"
171 \bind "S-Home" "buffer-begin-select"
172 \bind "S-End" "buffer-end-select"
173 \bind "S-Prior" "screen-up-select"
174 \bind "S-Next" "screen-down-select"
175 \bind "S-C-Home" "buffer-begin-select"
176 \bind "S-C-End" "buffer-end-select"
183 \bind "C-Delete" "word-delete-forward"
184 \bind "M-d" "word-delete-forward"
185 \bind "C-BackSpace" "word-delete-backward"
186 \bind "M-Return" "break-paragraph-keep-layout"
187 \bind "C-Return" "break-line"
188 \bind "C-space" "protected-space-insert"
189 \bind "C-period" "end-of-sentence-period-insert"
190 \bind "M-period" "dots-insert"
192 \bind "M-S-W" "layout-copy"
193 \bind "Escape" "meta-prefix"
197 # Include menu and math bindings
199 \bind_file menus.bind