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 d" "buffer-new"
78 \bind "C-x g" "buffer-view-ps"
79 \bind "C-x k" "buffer-close"
80 \bind "C-x p" "buffer-view"
81 \bind "C-x r" "buffer-typeset"
82 # Should have been "buffer-write-some"
83 # \bind "C-x s" "buffer-write"
84 \bind "C-x t" "buffer-typeset"
86 \bind "C-x v h" "vc-history"
87 \bind "C-x v v" "vc-check-in"
88 \bind "C-x v u" "vc-revert"
89 \bind "C-x v c" "vc-undo-last"
90 \bind "C-x v i" "vc-register"
91 #\bind "C-x w" "buffer-write-as"
92 \bind "C-x bracketleft" "screen-up"
93 \bind "C-x bracketright" "screen-down"
94 \bind "C-x quoteleft" "error-next"
95 \bind "C-x C-a" "buffer-auto-save"
96 \bind "C-x C-b" "menu-open Documents" # list all buffers
97 \bind "C-x C-c" "lyx-quit"
98 \bind "C-x C-d" "buffer-new"
99 \bind "C-x C-f" "buffer-open"
100 \bind "C-x C-g" "buffer-view-ps"
101 \bind "C-x C-l" "word-lowcase" # downcase-region!
102 \bind "C-x C-p" "buffer-view"
103 \bind "C-x C-q" "buffer-toggle-read-only"
104 #\bind "C-x C-r" "buffer-typeset"
105 \bind "C-x C-s" "buffer-write"
106 \bind "C-x C-t" "buffer-typeset"
107 \bind "C-x C-u" "word-upcase" # upcase-region!
108 \bind "C-x C-w" "buffer-write-as"
121 #bind "F1" "help" # Not yet implemented!
122 #bind "C-F1" "help-context" # Not yet implemented!
123 #\bind "F2" "buffer-write"
124 #\bind "F3" "buffer-open"
133 \bind "M-x" "command-execute"
140 \bind "C-Right" "word-forward"
141 \bind "C-Left" "word-backward"
142 \bind "C-Up" "paragraph-up"
143 \bind "C-Down" "paragraph-down"
144 \bind "M-bracketleft" "paragraph-up"
145 \bind "M-bracketright" "paragraph-down"
146 \bind "Home" "line-begin"
147 \bind "End" "line-end"
148 \bind "C-Home" "buffer-begin"
149 \bind "C-End" "buffer-end"
150 \bind "M-~S-less" "buffer-begin"
151 \bind "M-~S-greater" "buffer-end"
153 \bind "Prior" "screen-up"
154 \bind "Next" "screen-down"
156 # A bit like autoindent in c-mode
157 \bind "Tab" "depth-next"
159 \bind "C-~S-greater" "reference-goto"
160 \bind "C-~S-less" "reference-back"
163 # Motion + select group
166 \bind "S-Right" "forward-select"
167 \bind "S-Left" "backward-select"
168 \bind "S-C-F" "forward-select"
169 \bind "S-C-B" "backward-select"
170 \bind "S-Up" "up-select"
171 \bind "S-Down" "down-select"
172 \bind "S-C-Right" "word-forward-select"
173 \bind "S-C-Left" "word-backward-select"
174 \bind "S-C-Up" "paragraph-up-select"
175 \bind "S-C-Down" "paragraph-down-select"
176 \bind "S-Home" "line-begin-select"
177 \bind "S-End" "line-end-select"
178 \bind "S-C-A" "line-begin-select"
179 \bind "S-C-E" "line-end-select"
180 \bind "S-Prior" "screen-up-select"
181 \bind "S-Next" "screen-down-select"
182 \bind "S-C-Home" "buffer-begin-select"
183 \bind "S-C-End" "buffer-end-select"
190 \bind "M-Delete" "word-delete-backward"
191 \bind "C-Delete" "word-delete-forward"
192 \bind "M-d" "word-delete-forward"
193 \bind "C-BackSpace" "word-delete-backward"
194 \bind "M-Return" "break-paragraph-keep-layout"
195 \bind "C-Return" "break-line"
196 \bind "C-space" "protected-space-insert"
197 \bind "C-period" "end-of-sentence-period-insert"
198 \bind "M-period" "dots-insert"
200 \bind "M-S-W" "layout-copy"
201 \bind "Escape" "meta-prefix"
203 ## Trying to incorporate the best of AucTeX and HM--HTML modes
205 # "C-z" is used in HM--HTML-mode for paragraph styles so try to support
206 # similar here especially for LinuxDoc (although LinuxDoc isn't only for
209 \bind "C-c C-l" "latex-view-log" # show warning log
210 \bind "C-c C-o" "error-next"
211 \bind "C-c C-v" "buffer-chktex" # validate
213 \bind "C-z space" "drop-layouts-choice"
214 \bind "C-z 1" "layout Title"
215 \bind "C-z 2" "layout Section"
216 \bind "C-z 3" "layout Subsection"
217 \bind "C-z 4" "layout Subsubsection"
218 \bind "C-z 5" "layout Paragraph"
219 \bind "C-z 6" "layout Subparagraph"
220 \bind "C-z a" "layout Author" # address!!
221 \bind "C-z S-A" "layout Abstract"
222 \bind "C-z c" "layout LyX-Code"
223 \bind "C-z b" "font-bold"
224 \bind "C-z d" "layout Description"
225 \bind "C-z S-D" "layout Date"
226 \bind "C-z e" "font-emph"
227 \bind "C-z i" "layout Itemize" # smart-insert-item!!
228 \bind "C-z o" "font-emph" # italic!
229 \bind "C-z q" "layout Quote"
230 \bind "C-z s" "font-bold" # strong!
231 \bind "C-c t" "font-sans" # typewriter!
232 \bind "C-c v" "font-roman" # variable!
233 \bind "C-z S-V" "layout Verbatim"
235 \bind "C-z l d" "layout Description"
236 \bind "C-z l t" "layout Description"
237 \bind "C-z l o" "layout Enumerate" # numbered list
238 \bind "C-z l l" "layout Itemize" # bulleted list
239 \bind "C-z l u" "layout Itemize" # bulleted list
245 #\bind "C-u C-c C-f" "layout-character"
246 \bind "C-c C-f C-b" "font-bold"
247 \bind "C-c C-f C-c" "font-noun"
248 \bind "C-c C-f C-e" "font-emph"
249 \bind "C-c C-f C-i" "font-emph" #italic
250 \bind "C-c C-f C-s" "font-emph" #slanted
252 \bind "C-c C-f C-f" "font-sans"
253 \bind "C-c C-f C-r" "font-roman"
254 \bind "C-c C-f C-t" "font-code" #typewriter
256 \bind "C-c asciitilde" "math-mode"
258 \bind "C-c quoteleft" "error-next"
260 \bind "C-c C-s 0" "layout Standard"
261 \bind "C-c C-s 1" "layout Chapter"
262 \bind "C-c C-s 2" "layout Section"
263 \bind "C-c C-s 3" "layout Subsection"
264 \bind "C-c C-s 4" "layout Subsubsection"
265 \bind "C-c C-s 5" "layout Paragraph"
266 \bind "C-c C-s 6" "layout Subparagraph"
267 \bind "C-c C-e a" "layout Abstract"
268 \bind "C-c C-e d" "layout Description"
269 \bind "C-c C-e e" "layout Enumerate"
270 \bind "C-c C-e i" "layout Itemize"
271 \bind "C-c C-e l" "layout List"
272 \bind "C-c C-e m" "math-display" # should this be math-mode?
273 \bind "C-c C-e q" "layout Quote"
274 \bind "C-c C-e S-q" "layout Quotation"
275 \bind "C-c C-e v" "layout Quote"
277 \bind "C-c C-e f" "figure-insert" ## should be figure-float
278 \bind "C-c C-e t" "table-insert" ## should be table-float
280 \bind "C-c percent" "layout Comment"
282 \bind "C-c Return" "break-paragraph-keep-layout"
286 ## Start TeX mode, some overlap with AucTeX mode
288 \bind "C-c C-b" "buffer-typeset"
289 \bind "C-c C-p" "buffer-print"
290 \bind "C-c C-r" "buffer-typeset" # tex region
295 ################################
296 # Include menu and math bindings
298 \bind_file menus.bind