home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / lyx21041.zip / XFree86 / lib / X11 / lyx / bind / xemacs.bind < prev   
Text File  |  1999-03-01  |  10KB  |  300 lines

  1. # This file is part of
  2. # ==================================================================
  3. #
  4. #                   LyX, the High Level Word Processor
  5. #                  Copyright (C) 1995-1997 The LyX Team
  6. #
  7. #               THIS FILE DEFINES THE XEMACS LYX BINDINGS
  8. #
  9. # ==================================================================
  10.  
  11. #
  12. # This is the XEMACS flavour bind file, based on the bindings found 
  13. # in the XEmacs editor. It has many bindings identical to the
  14. # Emacs binding file although there are a few significant changes.
  15. #
  16. #
  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/xemacs.bind
  21. #
  22. # Happy tuning!
  23.  
  24. \bind "C-~S-at"            "mark-on"
  25. \bind "C-a"            "line-begin"
  26. \bind "C-b"            "char-backward"
  27. #bind "C-c"            "------" # see end of file
  28. \bind "C-d"            "delete-forward"
  29. \bind "C-e"            "line-end"
  30. \bind "C-f"            "char-forward"
  31. \bind "C-g"            "cancel"
  32.  
  33. # help in emacs
  34. \bind "C-h"                    "hyphenation-point-insert" 
  35. \bind "C-i"                    "hfill-insert"
  36. #bind "C-j"                    "------"
  37. \bind "C-k"                    "line-delete-forward"
  38. \bind "C-l"                    "screen-recenter"
  39. \bind "C-m"                    "mark-toggle"
  40. \bind "C-n"                    "down"
  41. \bind "C-o"                    "open-stuff"
  42. \bind "C-p"                    "up"
  43.  
  44. # this is "quoted-insert" a total different meaning from "quote-insert"
  45. \bind "C-q"                    "quote-insert"
  46. #bind "C-r"                    "------"
  47. \bind "C-s"                    "find-replace"
  48. \bind "M-~S-percent"        "find-replace"
  49.  
  50. # should be "chars-transpose" (swaps two chars)
  51. #bind "C-t"                    "------"
  52.  
  53. # universal argument in emacs
  54. \bind "C-u"                    "font-underline"
  55.  
  56. # better name would be "scroll-up" as in emacs
  57. \bind "C-v"                    "screen-down"
  58. \bind "M-v"                    "screen-up"
  59.  
  60. \bind "C-w"                    "cut"
  61. #bind "C-x"                    "------"
  62. \bind "C-y"                    "paste"
  63. \bind "C-S-Y"                  "layout-paste"
  64.  
  65. #should be "lyx-iconify"
  66. #bind "C-z"                    "------"   # see end of file
  67.  
  68. \bind "C-~S-slash"             "undo"
  69. \bind "C-~S-underscore"        "undo"
  70.  
  71. \bind "S-C-quotedbl"           "quote-insert"
  72.  
  73. \bind "C-x a"                  "buffer-auto-save"
  74. \bind "C-x b"                  "buffer-previous"
  75. \bind "C-x c"                  "lyx-quit"
  76. \bind "C-x d"                  "buffer-new"
  77. \bind "C-x g"                  "buffer-view-ps"
  78. \bind "C-x k"                  "buffer-close"
  79. \bind "C-x p"                  "buffer-view"
  80. \bind "C-x r"                  "buffer-typeset"
  81. # Should have been "buffer-write-some"
  82. # \bind "C-x s"                  "buffer-write"
  83. \bind "C-x t"                  "buffer-typeset"
  84. \bind "C-x u"                  "undo"
  85. \bind "C-x v h"                "vc-history"
  86. \bind "C-x v v"                "vc-check-in"
  87. \bind "C-x v u"                "vc-revert"
  88. \bind "C-x v c"                "vc-undo-last"
  89. \bind "C-x v i"                "vc-register"
  90. #\bind "C-x w"                  "buffer-write-as"
  91. \bind "C-x bracketleft"        "screen-up"
  92. \bind "C-x bracketright"       "screen-down"
  93. \bind "C-x quoteleft"        "error-next"
  94. \bind "C-x C-a"                "buffer-auto-save"
  95. \bind "C-x C-b"                "menu-open Documents"    # list all buffers
  96. \bind "C-x C-c"                "lyx-quit"
  97. \bind "C-x C-d"                "buffer-new"
  98. \bind "C-x C-f"                "buffer-open"
  99. \bind "C-x C-g"                "buffer-view-ps"
  100. \bind "C-x C-l"            "word-lowcase"        # downcase-region!
  101. \bind "C-x C-p"                "buffer-view"
  102. \bind "C-x C-q"                "buffer-toggle-read-only"
  103. #\bind "C-x C-r"                "buffer-typeset"
  104. \bind "C-x C-s"                "buffer-write"
  105. \bind "C-x C-t"                "buffer-typeset"
  106. \bind "C-x C-u"            "word-upcase"        # upcase-region!
  107. \bind "C-x C-w"                "buffer-write-as"
  108.  
  109. #bind "C-1"                    "------"
  110. #bind "C-2"                    "------"
  111. #bind "C-3"                    "------"
  112. #bind "C-4"                    "------"
  113. #bind "C-5"                    "------"
  114. #bind "C-6"                    "------"
  115. #bind "C-7"                    "------"
  116. #bind "C-8"                    "------"
  117. #bind "C-9"                    "------"
  118. #bind "C-0"                    "------"
  119.  
  120. #bind "F1"                     "help"                          # Not yet implemented!
  121. #bind "C-F1"                   "help-context"                  # Not yet implemented!
  122. #\bind "F2"                     "buffer-write"
  123. #\bind "F3"                     "buffer-open"
  124. #bind "F4"                     "------"
  125. #bind "F5"                     "------"
  126. #bind "F6"                     "------"
  127. #bind "F7"                     "------"
  128. #bind "F8"                     "------"
  129. #bind "F9"                     "------"
  130. #bind "F10"                    "------"
  131.  
  132. \bind "M-x"            "command-execute"
  133.  
  134.  
  135. #
  136. # Motion group
  137. #
  138.  
  139. \bind "C-Right"                "word-forward"
  140. \bind "C-Left"                 "word-backward"
  141. \bind "C-Up"                   "paragraph-up"
  142. \bind "C-Down"                 "paragraph-down"
  143. \bind "M-bracketleft"          "paragraph-up"
  144. \bind "M-bracketright"         "paragraph-down"
  145. \bind "Home"                   "line-begin"
  146. \bind "End"                    "line-end"
  147. \bind "C-Home"                 "buffer-begin"
  148. \bind "C-End"                  "buffer-end"
  149. \bind "M-~S-less"              "buffer-begin"
  150. \bind "M-~S-greater"           "buffer-end"
  151.  
  152. \bind "Prior"                  "screen-up"
  153. \bind "Next"                   "screen-down"
  154.  
  155. # A bit like autoindent in c-mode
  156. \bind "Tab"                     "depth-next"
  157.  
  158. \bind "C-~S-greater"        "reference-goto"
  159. \bind "C-~S-less"         "reference-back"
  160.  
  161. #
  162. # Motion + select group
  163. #
  164.  
  165. \bind "S-Right"                "forward-select"
  166. \bind "S-Left"                 "backward-select"
  167. \bind "S-C-F"                  "forward-select"
  168. \bind "S-C-B"                  "backward-select"
  169. \bind "S-Up"                   "up-select"
  170. \bind "S-Down"                 "down-select"
  171. \bind "S-C-Right"              "word-forward-select"
  172. \bind "S-C-Left"               "word-backward-select"
  173. \bind "S-C-Up"                 "paragraph-up-select"
  174. \bind "S-C-Down"               "paragraph-down-select"
  175. \bind "S-Home"                 "line-begin-select"
  176. \bind "S-End"                  "line-end-select"
  177. \bind "S-C-A"                  "line-begin-select"
  178. \bind "S-C-E"                  "line-end-select"
  179. \bind "S-Prior"                "screen-up-select"
  180. \bind "S-Next"                 "screen-down-select"
  181. \bind "S-C-Home"               "buffer-begin-select"
  182. \bind "S-C-End"                "buffer-end-select"
  183.  
  184.  
  185. #
  186. # Edit group
  187. #
  188.  
  189. \bind "M-Delete"        "word-delete-backward"
  190. \bind "C-Delete"        "word-delete-forward"
  191. \bind "M-d"                     "word-delete-forward"
  192. \bind "C-BackSpace"        "word-delete-backward"
  193. \bind "M-Return"        "break-paragraph-keep-layout"
  194. \bind "C-Return"        "break-line"
  195. \bind "C-space"            "protected-space-insert"
  196. \bind "C-period"        "end-of-sentence-period-insert"
  197. \bind "M-period"        "dots-insert"
  198. \bind "M-w"            "copy"
  199. \bind "M-S-W"            "layout-copy"
  200. \bind "Escape"            "meta-prefix"
  201.  
  202. ## Trying to incorporate the best of AucTeX and HM--HTML modes
  203. ##
  204. # "C-z" is used in HM--HTML-mode for paragraph styles so try to support
  205. #  similar here especially for LinuxDoc (although LinuxDoc isn't only for
  206. #  making HTML).
  207. ##
  208. \bind "C-c C-l"                 "latex-view-log"        # show warning log
  209. \bind "C-c C-o"                 "error-next"
  210. \bind "C-c C-v"                 "buffer-chktex"         # validate
  211.  
  212. \bind "C-z space"        "drop-layouts-choice"
  213. \bind "C-z 1"            "layout Title" 
  214. \bind "C-z 2"            "layout Section" 
  215. \bind "C-z 3"            "layout Subsection"  
  216. \bind "C-z 4"            "layout Subsubsection"    
  217. \bind "C-z 5"            "layout Paragraph"        
  218. \bind "C-z 6"            "layout Subparagraph"
  219. \bind "C-z a"            "layout Author"        # address!!
  220. \bind "C-z S-A"            "layout Abstract"
  221. \bind "C-z c"            "layout LyX-Code"
  222. \bind "C-z b"            "font-bold"
  223. \bind "C-z d"            "layout Description"
  224. \bind "C-z S-D"            "layout Date"
  225. \bind "C-z e"            "font-emph"
  226. \bind "C-z i"            "layout Itemize"    # smart-insert-item!!
  227. \bind "C-z o"            "font-emph"        # italic!
  228. \bind "C-z q"            "layout Quote"
  229. \bind "C-z s"            "font-bold"        # strong!
  230. \bind "C-c t"            "font-sans"        # typewriter!
  231. \bind "C-c v"            "font-roman"        # variable!
  232. \bind "C-z S-V"            "layout Verbatim"
  233.  
  234. \bind "C-z l d"            "layout Description"
  235. \bind "C-z l t"            "layout Description"
  236. \bind "C-z l o"            "layout Enumerate"    # numbered list
  237. \bind "C-z l l"            "layout Itemize"    # bulleted list
  238. \bind "C-z l u"            "layout Itemize"    # bulleted list
  239. #
  240. ## End HM--HTML Mode
  241. ##
  242. ## Start AucTeX
  243. #
  244. #\bind "C-u C-c C-f"        "layout-character"
  245. \bind "C-c C-f C-b"        "font-bold"
  246. \bind "C-c C-f C-c"        "font-noun"
  247. \bind "C-c C-f C-e"        "font-emph"
  248. \bind "C-c C-f C-i"        "font-emph" #italic
  249. \bind "C-c C-f C-s"        "font-emph" #slanted
  250.  
  251. \bind "C-c C-f C-f"        "font-sans"
  252. \bind "C-c C-f C-r"        "font-roman"
  253. \bind "C-c C-f C-t"        "font-code"  #typewriter
  254.  
  255. \bind "C-c asciitilde"        "math-mode"
  256.  
  257. \bind "C-c quoteleft"        "error-next"
  258.  
  259. \bind "C-c C-s 0"        "layout Standard"
  260. \bind "C-c C-s 1"        "layout Chapter"
  261. \bind "C-c C-s 2"        "layout Section"
  262. \bind "C-c C-s 3"        "layout Subsection"
  263. \bind "C-c C-s 4"        "layout Subsubsection"
  264. \bind "C-c C-s 5"        "layout Paragraph"
  265. \bind "C-c C-s 6"        "layout Subparagraph"
  266. \bind "C-c C-e a"        "layout Abstract"
  267. \bind "C-c C-e d"        "layout Description"
  268. \bind "C-c C-e e"        "layout Enumerate"
  269. \bind "C-c C-e i"        "layout Itemize"
  270. \bind "C-c C-e l"        "layout List"
  271. \bind "C-c C-e m"        "math-display"    # should this be math-mode?
  272. \bind "C-c C-e q"        "layout Quote"
  273. \bind "C-c C-e S-q"        "layout Quotation"
  274. \bind "C-c C-e v"        "layout Quote"
  275.  
  276. \bind "C-c C-e f"        "figure-insert"  ## should be figure-float
  277. \bind "C-c C-e t"        "table-insert"   ## should be table-float
  278.  
  279. \bind "C-c percent"        "layout Comment"
  280.  
  281. \bind "C-c Return"        "break-paragraph-keep-layout"
  282. #
  283. ## End AucTeX
  284. #
  285. ## Start TeX mode, some overlap with AucTeX mode
  286. #
  287. \bind "C-c C-b"            "buffer-typeset"
  288. \bind "C-c C-p"            "buffer-print"
  289. \bind "C-c C-r"            "buffer-typeset"    # tex region
  290. #
  291. ## End TeX mode
  292. #
  293.  
  294. ################################
  295. # Include menu and math bindings
  296.  
  297. \bind_file menus.bind
  298. \bind_file math.bind
  299.