]> git.lyx.org Git - lyx.git/blob - lib/bind/xemacs.bind
Fix a warning and a buglet in build-listerrors script.
[lyx.git] / lib / bind / xemacs.bind
1 # This file is part of
2 # ==================================================================
3 #
4 #                   LyX, the High Level Word Processor
5
6 #                  Copyright (C) 1995-1997 The LyX Team
7 #
8 #               THIS FILE DEFINES THE XEMACS LYX BINDINGS
9 #
10 # ==================================================================
11
12 #
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.
16 #
17 #
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
22 #
23 # Happy tuning!
24
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"
32 \bind "C-g"                     "cancel"
33
34 # help in emacs
35 \bind "C-h"                    "hyphenation-point-insert" 
36 \bind "C-i"                    "hfill-insert"
37 #bind "C-j"                    "------"
38 \bind "C-k"                    "line-delete-forward"
39 \bind "C-l"                    "screen-recenter"
40 \bind "C-m"                    "mark-toggle"
41 \bind "C-n"                    "down"
42 \bind "C-o"                    "open-stuff"
43 \bind "C-p"                    "up"
44
45 # this is "quoted-insert" a total different meaning from "quote-insert"
46 \bind "C-q"                    "quote-insert"
47 #bind "C-r"                    "------"
48 \bind "C-s"                    "find-replace"
49 \bind "M-~S-percent"            "find-replace"
50
51 # should be "chars-transpose" (swaps two chars)
52 #bind "C-t"                    "------"
53
54 # universal argument in emacs
55 \bind "C-u"                    "font-underline"
56
57 # better name would be "scroll-up" as in emacs
58 \bind "C-v"                    "screen-down"
59 \bind "M-v"                    "screen-up"
60
61 \bind "C-w"                    "cut"
62 #bind "C-x"                    "------"
63 \bind "C-y"                    "paste"
64 \bind "C-S-Y"                  "layout-paste"
65
66 #should be "lyx-iconify"
67 #bind "C-z"                    "------"   # see end of file
68
69 \bind "C-~S-slash"             "undo"
70 \bind "C-~S-underscore"        "undo"
71
72 \bind "S-C-quotedbl"           "quote-insert"
73
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"
86 \bind "C-x u"                  "undo"
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"
110
111 #bind "C-1"                    "------"
112 #bind "C-2"                    "------"
113 #bind "C-3"                    "------"
114 #bind "C-4"                    "------"
115 #bind "C-5"                    "------"
116 #bind "C-6"                    "------"
117 #bind "C-7"                    "------"
118 #bind "C-8"                    "------"
119 #bind "C-9"                    "------"
120 #bind "C-0"                    "------"
121
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"
126 #bind "F4"                     "------"
127 #bind "F5"                     "------"
128 #bind "F6"                     "------"
129 #bind "F7"                     "------"
130 #bind "F8"                     "------"
131 #bind "F9"                     "------"
132 #bind "F10"                    "------"
133
134 \bind "M-x"                     "command-execute"
135
136
137 #
138 # Motion group
139 #
140
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"
153
154 \bind "Prior"                  "screen-up"
155 \bind "Next"                   "screen-down"
156
157 # A bit like autoindent in c-mode
158 \bind "Tab"                     "depth-next"
159
160 \bind "C-~S-greater"            "reference-goto"
161 \bind "C-~S-less"               "reference-back"
162
163 #
164 # Motion + select group
165 #
166
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"
185
186
187 #
188 # Edit group
189 #
190
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"
200 \bind "M-w"                     "copy"
201 \bind "M-S-W"                   "layout-copy"
202 \bind "Escape"                  "meta-prefix"
203
204 ## Trying to incorporate the best of AucTeX and HM--HTML modes
205 ##
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
208 #  making HTML).
209 ##
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
213
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"
235
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
241 #
242 ## End HM--HTML Mode
243 ##
244 ## Start AucTeX
245 #
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
252
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
256
257 \bind "C-c asciitilde"          "math-mode"
258
259 \bind "C-c quoteleft"           "error-next"
260
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"
277
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
280
281 \bind "C-c percent"             "layout Comment"
282
283 \bind "C-c Return"              "break-paragraph-keep-layout"
284 #
285 ## End AucTeX
286 #
287 ## Start TeX mode, some overlap with AucTeX mode
288 #
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
292 #
293 ## End TeX mode
294 #
295
296 ################################
297 # Include menu and math bindings
298
299 \bind_file menus.bind
300 \bind_file math.bind