File: xemacs.bind

package info (click to toggle)
lyx 1.1.6fix4-2
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 26,136 kB
  • ctags: 13,679
  • sloc: cpp: 93,591; sh: 9,563; ansic: 8,253; perl: 3,489; makefile: 1,332; tcl: 163; sed: 150; python: 112; yacc: 38
file content (299 lines) | stat: -rw-r--r-- 10,280 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# This file is part of
# ==================================================================
#
#                   LyX, the High Level Word Processor
# 
#                  Copyright (C) 1995-1997 The LyX Team
#
#               THIS FILE DEFINES THE XEMACS LYX BINDINGS
#
# ==================================================================

#
# This is the XEMACS flavour bind file, based on the bindings found 
# in the XEmacs editor. It has many bindings identical to the
# Emacs binding file although there are a few significant changes.
#
#
# DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
# with every new install of LyX and your changes will be lost. 
# Instead, customize a copy of this file placed in 
# ~/.lyx/bind/xemacs.bind
#
# Happy tuning!

\bind "C-~S-at"			"mark-on"
\bind "C-a"			"line-begin"
\bind "C-b"			"char-backward"
#bind "C-c"			"------" # see end of file
\bind "C-d"			"delete-forward"
\bind "C-e"			"line-end"
\bind "C-f"			"char-forward"
\bind "C-g"			"cancel"

# help in emacs
\bind "C-h"                    "hyphenation-point-insert" 
\bind "C-i"                    "hfill-insert"
#bind "C-j"                    "------"
\bind "C-k"                    "line-delete-forward"
\bind "C-l"                    "screen-recenter"
\bind "C-m"                    "mark-toggle"
\bind "C-n"                    "down"
\bind "C-o"                    "open-stuff"
\bind "C-p"                    "up"

# this is "quoted-insert" a total different meaning from "quote-insert"
\bind "C-q"                    "quote-insert"
#bind "C-r"                    "------"
\bind "C-s"                    "find-replace"
\bind "M-~S-percent"		"find-replace"

# should be "chars-transpose" (swaps two chars)
#bind "C-t"                    "------"

# universal argument in emacs
\bind "C-u"                    "font-underline"

# better name would be "scroll-up" as in emacs
\bind "C-v"                    "screen-down"
\bind "M-v"                    "screen-up"

\bind "C-w"                    "cut"
#bind "C-x"                    "------"
\bind "C-y"                    "paste"
\bind "C-S-Y"                  "layout-paste"

#should be "lyx-iconify"
#bind "C-z"                    "------"   # see end of file

\bind "C-~S-slash"             "undo"
\bind "C-~S-underscore"        "undo"

\bind "S-C-quotedbl"           "quote-insert"

\bind "C-x a"                  "buffer-auto-save"
# not currently supported
#\bind "C-x b"                 "buffer-previous"
\bind "C-x d"                  "buffer-new"
\bind "C-x g"                  "buffer-view ps"
\bind "C-x k"                  "buffer-close"
\bind "C-x p"                  "buffer-view dvi"
\bind "C-x r"                  "buffer-update dvi"
# Should have been "buffer-write-some"
# \bind "C-x s"                  "buffer-write"
\bind "C-x t"                  "buffer-update dvi"
\bind "C-x u"                  "undo"
\bind "C-x v h"                "vc-history"
\bind "C-x v v"                "vc-check-in"
\bind "C-x v u"                "vc-revert"
\bind "C-x v c"                "vc-undo-last"
\bind "C-x v i"                "vc-register"
#\bind "C-x w"                  "buffer-write-as"
\bind "C-x bracketleft"        "screen-up"
\bind "C-x bracketright"       "screen-down"
\bind "C-x quoteleft"		"error-next"
\bind "C-x C-a"                "buffer-auto-save"
\bind "C-x C-b"                "menu-open documents"	# list all buffers
\bind "C-x C-c"                "lyx-quit"
\bind "C-x C-d"                "buffer-new"
\bind "C-x C-f"                "buffer-open"
\bind "C-x C-g"                "buffer-view ps"
\bind "C-x C-l"			"word-lowcase"		# downcase-region!
\bind "C-x C-p"                "buffer-view dvi"
\bind "C-x C-q"                "buffer-toggle-read-only"
#\bind "C-x C-r"                "buffer-update dvi"
\bind "C-x C-s"                "buffer-write"
\bind "C-x C-t"                "buffer-update dvi"
\bind "C-x C-u"			"word-upcase"		# upcase-region!
\bind "C-x C-w"                "buffer-write-as"

#bind "C-1"                    "------"
#bind "C-2"                    "------"
#bind "C-3"                    "------"
#bind "C-4"                    "------"
#bind "C-5"                    "------"
#bind "C-6"                    "------"
#bind "C-7"                    "------"
#bind "C-8"                    "------"
#bind "C-9"                    "------"
#bind "C-0"                    "------"

#bind "F1"                     "help"                          # Not yet implemented!
#bind "C-F1"                   "help-context"                  # Not yet implemented!
#\bind "F2"                     "buffer-write"
#\bind "F3"                     "buffer-open"
#bind "F4"                     "------"
#bind "F5"                     "------"
#bind "F6"                     "------"
#bind "F7"                     "------"
#bind "F8"                     "------"
#bind "F9"                     "------"
#bind "F10"                    "------"

\bind "M-x"			"command-execute"


#
# Motion group
#

\bind "C-Right"                "word-forward"
\bind "C-Left"                 "word-backward"
\bind "C-Up"                   "paragraph-up"
\bind "C-Down"                 "paragraph-down"
\bind "M-bracketleft"          "paragraph-up"
\bind "M-bracketright"         "paragraph-down"
\bind "Home"                   "line-begin"
\bind "End"                    "line-end"
\bind "C-Home"                 "buffer-begin"
\bind "C-End"                  "buffer-end"
\bind "M-~S-less"              "buffer-begin"
\bind "M-~S-greater"           "buffer-end"

\bind "Prior"                  "screen-up"
\bind "Next"                   "screen-down"

# A bit like autoindent in c-mode
\bind "Tab"                     "depth-next"

\bind "C-~S-greater"		"reference-goto"
\bind "C-~S-less" 		"reference-back"

#
# Motion + select group
#

\bind "S-Right"                "forward-select"
\bind "S-Left"                 "backward-select"
\bind "S-C-F"                  "forward-select"
\bind "S-C-B"                  "backward-select"
\bind "S-Up"                   "up-select"
\bind "S-Down"                 "down-select"
\bind "S-C-Right"              "word-forward-select"
\bind "S-C-Left"               "word-backward-select"
\bind "S-C-Up"                 "paragraph-up-select"
\bind "S-C-Down"               "paragraph-down-select"
\bind "S-Home"                 "line-begin-select"
\bind "S-End"                  "line-end-select"
\bind "S-C-A"                  "line-begin-select"
\bind "S-C-E"                  "line-end-select"
\bind "S-Prior"                "screen-up-select"
\bind "S-Next"                 "screen-down-select"
\bind "S-C-Home"               "buffer-begin-select"
\bind "S-C-End"                "buffer-end-select"


#
# Edit group
#

\bind "M-Delete"		"word-delete-backward"
\bind "C-Delete"		"word-delete-forward"
\bind "M-d"                     "word-delete-forward"
\bind "C-BackSpace"		"word-delete-backward"
\bind "M-Return"		"break-paragraph-keep-layout"
\bind "C-Return"		"break-line"
\bind "C-space"			"protected-space-insert"
\bind "C-period"		"end-of-sentence-period-insert"
\bind "M-period"		"dots-insert"
\bind "M-w"			"copy"
\bind "M-S-W"			"layout-copy"
\bind "Escape"			"meta-prefix"

## Trying to incorporate the best of AucTeX and HM--HTML modes
##
# "C-z" is used in HM--HTML-mode for paragraph styles so try to support
#  similar here especially for LinuxDoc (although LinuxDoc isn't only for
#  making HTML).
##
\bind "C-c C-l"                 "latex-view-log"        # show warning log
\bind "C-c C-o"                 "error-next"
\bind "C-c C-v"                 "buffer-chktex"         # validate

\bind "C-z space"		"drop-layouts-choice"
\bind "C-z 1"			"layout Title" 
\bind "C-z 2"			"layout Section" 
\bind "C-z 3"			"layout Subsection"  
\bind "C-z 4"			"layout Subsubsection"    
\bind "C-z 5"			"layout Paragraph"        
\bind "C-z 6"			"layout Subparagraph"
\bind "C-z a"			"layout Author"		# address!!
\bind "C-z S-A"			"layout Abstract"
\bind "C-z c"			"layout LyX-Code"
\bind "C-z b"			"font-bold"
\bind "C-z d"			"layout Description"
\bind "C-z S-D"			"layout Date"
\bind "C-z e"			"font-emph"
\bind "C-z i"			"layout Itemize"	# smart-insert-item!!
\bind "C-z o"			"font-emph"		# italic!
\bind "C-z q"			"layout Quote"
\bind "C-z s"			"font-bold"		# strong!
\bind "C-c t"			"font-sans"		# typewriter!
\bind "C-c v"			"font-roman"		# variable!
\bind "C-z S-V"			"layout Verbatim"

\bind "C-z l d"			"layout Description"
\bind "C-z l t"			"layout Description"
\bind "C-z l o"			"layout Enumerate"	# numbered list
\bind "C-z l l"			"layout Itemize"	# bulleted list
\bind "C-z l u"			"layout Itemize"	# bulleted list
#
## End HM--HTML Mode
##
## Start AucTeX
#
#\bind "C-u C-c C-f"		"layout-character"
\bind "C-c C-f C-b"		"font-bold"
\bind "C-c C-f C-c"		"font-noun"
\bind "C-c C-f C-e"		"font-emph"
\bind "C-c C-f C-i"		"font-emph" #italic
\bind "C-c C-f C-s"		"font-emph" #slanted

\bind "C-c C-f C-f"		"font-sans"
\bind "C-c C-f C-r"		"font-roman"
\bind "C-c C-f C-t"		"font-code"  #typewriter

\bind "C-c ~S-asciitilde"		"math-mode"

\bind "C-c quoteleft"		"error-next"

\bind "C-c C-s 0"		"layout Standard"
\bind "C-c C-s 1"		"layout Chapter"
\bind "C-c C-s 2"		"layout Section"
\bind "C-c C-s 3"		"layout Subsection"
\bind "C-c C-s 4"		"layout Subsubsection"
\bind "C-c C-s 5"		"layout Paragraph"
\bind "C-c C-s 6"		"layout Subparagraph"
\bind "C-c C-e a"		"layout Abstract"
\bind "C-c C-e d"		"layout Description"
\bind "C-c C-e e"		"layout Enumerate"
\bind "C-c C-e i"		"layout Itemize"
\bind "C-c C-e l"		"layout List"
\bind "C-c C-e m"		"math-display"	# should this be math-mode?
\bind "C-c C-e q"		"layout Quote"
\bind "C-c C-e S-q"		"layout Quotation"
\bind "C-c C-e v"		"layout Quote"

\bind "C-c C-e f"		"figure-insert"  ## should be figure-float
\bind "C-c C-e t"		"dialog-tabular-insert" ## should be table-float

\bind "C-c percent"		"layout Comment"

\bind "C-c Return"		"break-paragraph-keep-layout"
#
## End AucTeX
#
## Start TeX mode, some overlap with AucTeX mode
#
\bind "C-c C-b"			"buffer-update dvi"
\bind "C-c C-p"			"buffer-print"
\bind "C-c C-r"			"buffer-update dvi"	# tex region
#
## End TeX mode
#

################################
# Include menu and math bindings

\bind_file menus.bind
\bind_file math.bind