2 # ==================================================================
4 # LyX, the High Level Word Processor
6 # Copyright (C) 1995-1997 The LyX Team
8 # THIS FILE DEFINES THE XEMACS LYX BINDINGS
10 # ==================================================================
13 # This is the XEMACS flavour bind file, based on the bindings found
14 # in the XEmacs editor. It has many bindings identical to the
15 # Emacs binding file although there are a few significant changes.
18 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
19 # with every new install of LyX and your changes will be lost.
20 # Instead, customize a copy of this file placed in
21 # ~/.lyx/bind/xemacs.bind
25 \bind "C-~S-at" "mark-on"
26 \bind "C-a" "line-begin"
27 \bind "C-b" "char-backward"
28 #bind "C-c" "------" # see end of file
29 \bind "C-d" "delete-forward"
30 \bind "C-e" "line-end"
31 \bind "C-f" "char-forward"
35 \bind "C-h" "hyphenation-point-insert"
36 \bind "C-i" "hfill-insert"
38 \bind "C-k" "line-delete-forward"
39 \bind "C-l" "screen-recenter"
40 \bind "C-m" "mark-toggle"
42 \bind "C-o" "open-stuff"
45 # this is "quoted-insert" a total different meaning from "quote-insert"
46 \bind "C-q" "quote-insert"
48 \bind "C-s" "find-replace"
49 \bind "M-~S-percent" "find-replace"
51 # should be "chars-transpose" (swaps two chars)
54 # universal argument in emacs
55 \bind "C-u" "font-underline"
57 # better name would be "scroll-up" as in emacs
58 \bind "C-v" "screen-down"
59 \bind "M-v" "screen-up"
64 \bind "C-S-Y" "layout-paste"
66 #should be "lyx-iconify"
67 #bind "C-z" "------" # see end of file
69 \bind "C-~S-slash" "undo"
70 \bind "C-~S-underscore" "undo"
72 \bind "S-C-quotedbl" "quote-insert"
74 \bind "C-x a" "buffer-auto-save"
75 # not currently supported
76 #\bind "C-x b" "buffer-previous"
77 \bind "C-x c" "lyx-quit"
78 \bind "C-x d" "buffer-new"
79 \bind "C-x g" "buffer-view-ps"
80 \bind "C-x k" "buffer-close"
81 \bind "C-x p" "buffer-view"
82 \bind "C-x r" "buffer-typeset"
83 # Should have been "buffer-write-some"
84 # \bind "C-x s" "buffer-write"
85 \bind "C-x t" "buffer-typeset"
87 \bind "C-x v h" "vc-history"
88 \bind "C-x v v" "vc-check-in"
89 \bind "C-x v u" "vc-revert"
90 \bind "C-x v c" "vc-undo-last"
91 \bind "C-x v i" "vc-register"
92 #\bind "C-x w" "buffer-write-as"
93 \bind "C-x bracketleft" "screen-up"
94 \bind "C-x bracketright" "screen-down"
95 \bind "C-x quoteleft" "error-next"
96 \bind "C-x C-a" "buffer-auto-save"
97 \bind "C-x C-b" "menu-open Documents" # list all buffers
98 \bind "C-x C-c" "lyx-quit"
99 \bind "C-x C-d" "buffer-new"
100 \bind "C-x C-f" "buffer-open"
101 \bind "C-x C-g" "buffer-view-ps"
102 \bind "C-x C-l" "word-lowcase" # downcase-region!
103 \bind "C-x C-p" "buffer-view"
104 \bind "C-x C-q" "buffer-toggle-read-only"
105 #\bind "C-x C-r" "buffer-typeset"
106 \bind "C-x C-s" "buffer-write"
107 \bind "C-x C-t" "buffer-typeset"
108 \bind "C-x C-u" "word-upcase" # upcase-region!
109 \bind "C-x C-w" "buffer-write-as"
122 #bind "F1" "help" # Not yet implemented!
123 #bind "C-F1" "help-context" # Not yet implemented!
124 #\bind "F2" "buffer-write"
125 #\bind "F3" "buffer-open"
134 \bind "M-x" "command-execute"
141 \bind "C-Right" "word-forward"
142 \bind "C-Left" "word-backward"
143 \bind "C-Up" "paragraph-up"
144 \bind "C-Down" "paragraph-down"
145 \bind "M-bracketleft" "paragraph-up"
146 \bind "M-bracketright" "paragraph-down"
147 \bind "Home" "line-begin"
148 \bind "End" "line-end"
149 \bind "C-Home" "buffer-begin"
150 \bind "C-End" "buffer-end"
151 \bind "M-~S-less" "buffer-begin"
152 \bind "M-~S-greater" "buffer-end"
154 \bind "Prior" "screen-up"
155 \bind "Next" "screen-down"
157 # A bit like autoindent in c-mode
158 \bind "Tab" "depth-next"
160 \bind "C-~S-greater" "reference-goto"
161 \bind "C-~S-less" "reference-back"
164 # Motion + select group
167 \bind "S-Right" "forward-select"
168 \bind "S-Left" "backward-select"
169 \bind "S-C-F" "forward-select"
170 \bind "S-C-B" "backward-select"
171 \bind "S-Up" "up-select"
172 \bind "S-Down" "down-select"
173 \bind "S-C-Right" "word-forward-select"
174 \bind "S-C-Left" "word-backward-select"
175 \bind "S-C-Up" "paragraph-up-select"
176 \bind "S-C-Down" "paragraph-down-select"
177 \bind "S-Home" "line-begin-select"
178 \bind "S-End" "line-end-select"
179 \bind "S-C-A" "line-begin-select"
180 \bind "S-C-E" "line-end-select"
181 \bind "S-Prior" "screen-up-select"
182 \bind "S-Next" "screen-down-select"
183 \bind "S-C-Home" "buffer-begin-select"
184 \bind "S-C-End" "buffer-end-select"
191 \bind "M-Delete" "word-delete-backward"
192 \bind "C-Delete" "word-delete-forward"
193 \bind "M-d" "word-delete-forward"
194 \bind "C-BackSpace" "word-delete-backward"
195 \bind "M-Return" "break-paragraph-keep-layout"
196 \bind "C-Return" "break-line"
197 \bind "C-space" "protected-space-insert"
198 \bind "C-period" "end-of-sentence-period-insert"
199 \bind "M-period" "dots-insert"
201 \bind "M-S-W" "layout-copy"
202 \bind "Escape" "meta-prefix"
204 ## Trying to incorporate the best of AucTeX and HM--HTML modes
206 # "C-z" is used in HM--HTML-mode for paragraph styles so try to support
207 # similar here especially for LinuxDoc (although LinuxDoc isn't only for
210 \bind "C-c C-l" "latex-view-log" # show warning log
211 \bind "C-c C-o" "error-next"
212 \bind "C-c C-v" "buffer-chktex" # validate
214 \bind "C-z space" "drop-layouts-choice"
215 \bind "C-z 1" "layout Title"
216 \bind "C-z 2" "layout Section"
217 \bind "C-z 3" "layout Subsection"
218 \bind "C-z 4" "layout Subsubsection"
219 \bind "C-z 5" "layout Paragraph"
220 \bind "C-z 6" "layout Subparagraph"
221 \bind "C-z a" "layout Author" # address!!
222 \bind "C-z S-A" "layout Abstract"
223 \bind "C-z c" "layout LyX-Code"
224 \bind "C-z b" "font-bold"
225 \bind "C-z d" "layout Description"
226 \bind "C-z S-D" "layout Date"
227 \bind "C-z e" "font-emph"
228 \bind "C-z i" "layout Itemize" # smart-insert-item!!
229 \bind "C-z o" "font-emph" # italic!
230 \bind "C-z q" "layout Quote"
231 \bind "C-z s" "font-bold" # strong!
232 \bind "C-c t" "font-sans" # typewriter!
233 \bind "C-c v" "font-roman" # variable!
234 \bind "C-z S-V" "layout Verbatim"
236 \bind "C-z l d" "layout Description"
237 \bind "C-z l t" "layout Description"
238 \bind "C-z l o" "layout Enumerate" # numbered list
239 \bind "C-z l l" "layout Itemize" # bulleted list
240 \bind "C-z l u" "layout Itemize" # bulleted list
246 #\bind "C-u C-c C-f" "layout-character"
247 \bind "C-c C-f C-b" "font-bold"
248 \bind "C-c C-f C-c" "font-noun"
249 \bind "C-c C-f C-e" "font-emph"
250 \bind "C-c C-f C-i" "font-emph" #italic
251 \bind "C-c C-f C-s" "font-emph" #slanted
253 \bind "C-c C-f C-f" "font-sans"
254 \bind "C-c C-f C-r" "font-roman"
255 \bind "C-c C-f C-t" "font-code" #typewriter
257 \bind "C-c asciitilde" "math-mode"
259 \bind "C-c quoteleft" "error-next"
261 \bind "C-c C-s 0" "layout Standard"
262 \bind "C-c C-s 1" "layout Chapter"
263 \bind "C-c C-s 2" "layout Section"
264 \bind "C-c C-s 3" "layout Subsection"
265 \bind "C-c C-s 4" "layout Subsubsection"
266 \bind "C-c C-s 5" "layout Paragraph"
267 \bind "C-c C-s 6" "layout Subparagraph"
268 \bind "C-c C-e a" "layout Abstract"
269 \bind "C-c C-e d" "layout Description"
270 \bind "C-c C-e e" "layout Enumerate"
271 \bind "C-c C-e i" "layout Itemize"
272 \bind "C-c C-e l" "layout List"
273 \bind "C-c C-e m" "math-display" # should this be math-mode?
274 \bind "C-c C-e q" "layout Quote"
275 \bind "C-c C-e S-q" "layout Quotation"
276 \bind "C-c C-e v" "layout Quote"
278 \bind "C-c C-e f" "figure-insert" ## should be figure-float
279 \bind "C-c C-e t" "table-insert" ## should be table-float
281 \bind "C-c percent" "layout Comment"
283 \bind "C-c Return" "break-paragraph-keep-layout"
287 ## Start TeX mode, some overlap with AucTeX mode
289 \bind "C-c C-b" "buffer-typeset"
290 \bind "C-c C-p" "buffer-print"
291 \bind "C-c C-r" "buffer-typeset" # tex region
296 ################################
297 # Include menu and math bindings
299 \bind_file menus.bind