home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / lyx21041.zip / XFree86 / lib / X11 / lyx / bind / emacs.bind < prev    next >
Text File  |  1999-03-01  |  7KB  |  203 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 EMACS LYX BINDINGS
  8. #
  9. # ==================================================================
  10.  
  11. #
  12. # This is the EMACS flavour bind file, based on the bindings found 
  13. # in the Emacs editor.
  14. #
  15. #
  16. # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
  17. # with every new install of LyX and your changes will be lost. 
  18. # Instead, customize a copy of this file placed in 
  19. # ~/.lyx/bind/emacs.bind
  20. #
  21. # Happy tuning!
  22.  
  23. \bind "C-~S-at"            "mark-on"
  24. \bind "C-a"            "line-begin"
  25. \bind "C-b"            "char-backward"
  26. #bind "C-c"            "------" // used as users prefix
  27. \bind "C-d"            "delete-forward"
  28. \bind "C-e"            "line-end"
  29. \bind "C-f"            "char-forward"
  30. \bind "C-g"            "cancel"
  31.  
  32. # help in emacs
  33. \bind "C-h"                    "hyphenation-point-insert" 
  34. \bind "C-i"                    "hfill-insert"
  35. #bind "C-j"                    "------"
  36. \bind "C-k"                    "line-delete-forward"
  37. \bind "C-l"                    "screen-recenter"
  38. \bind "C-m"                    "mark-toggle"
  39. \bind "C-n"                    "down"
  40. \bind "C-o"                    "open-stuff"
  41. \bind "C-p"                    "up"
  42.  
  43. # this is "quoted-insert" a total different meaning from "quote-insert"
  44. \bind "C-q"                    "quote-insert"
  45. #bind "C-r"                    "------"
  46. \bind "C-s"                    "find-replace"
  47. \bind "M-~S-percent"        "find-replace"
  48.  
  49. # should be "chars-transpose" (swaps two chars)
  50. #bind "C-t"                    "------"
  51.  
  52. # universal argument in emacs
  53. \bind "C-u"                    "font-underline"
  54.  
  55. # better name would be "scroll-up" as in emacs
  56. \bind "C-v"                    "screen-down"
  57.  
  58. \bind "C-w"                    "cut"
  59. #bind "C-x"                    "------"
  60. \bind "C-y"                    "paste"
  61. \bind "C-S-Y"                  "layout-paste"
  62.  
  63. #should be "lyx-iconify"
  64. #bind "C-z"                    "------"
  65.  
  66. \bind "C-~S-slash"             "undo"
  67. \bind "C-~S-underscore"        "undo"
  68.  
  69. \bind "S-C-quotedbl"           "quote-insert"
  70.  
  71. \bind "C-x a"                  "buffer-auto-save"
  72. \bind "C-x b"                  "buffer-previous"
  73. \bind "C-x c"                  "lyx-quit"
  74. \bind "C-x d"                  "buffer-new"
  75. \bind "C-x g"                  "buffer-view-ps"
  76. \bind "C-x k"                  "buffer-close"
  77. \bind "C-x p"                  "buffer-view"
  78. \bind "C-x r"                  "buffer-typeset"
  79. # Should have been "buffer-write-some"
  80. # \bind "C-x s"                  "buffer-write"
  81. \bind "C-x t"                  "buffer-typeset"
  82. \bind "C-x u"                  "undo"
  83. \bind "C-x v h"                "vc-history"
  84. \bind "C-x v v"                "vc-check-in"
  85. \bind "C-x v u"                "vc-revert"
  86. \bind "C-x v c"                "vc-undo-last"
  87. \bind "C-x v i"                "vc-register"
  88. #\bind "C-x w"                  "buffer-write-as"
  89. \bind "C-x bracketleft"        "screen-up"
  90. \bind "C-x bracketright"       "screen-down"
  91. \bind "C-x C-a"                "buffer-auto-save"
  92. \bind "C-x C-b"                "menu-open Documents"
  93. \bind "C-x C-c"                "lyx-quit"
  94. \bind "C-x C-d"                "buffer-new"
  95. \bind "C-x C-f"                "buffer-open"
  96. \bind "C-x C-g"                "buffer-view-ps"
  97. \bind "C-x C-p"                "buffer-view"
  98. \bind "C-x C-q"                "buffer-toggle-read-only"
  99. #\bind "C-x C-r"                "buffer-typeset"
  100. \bind "C-x C-s"                "buffer-write"
  101. \bind "C-x C-t"                "buffer-typeset"
  102.  
  103.  
  104. # this is "upcase-region" in emacs
  105. #\bind "C-x C-u"                "undo"
  106. \bind "C-x C-w"                "buffer-write-as"
  107.  
  108. #bind "C-1"                    "------"
  109. #bind "C-2"                    "------"
  110. #bind "C-3"                    "------"
  111. #bind "C-4"                    "------"
  112. #bind "C-5"                    "------"
  113. #bind "C-6"                    "------"
  114. #bind "C-7"                    "------"
  115. #bind "C-8"                    "------"
  116. #bind "C-9"                    "------"
  117. #bind "C-0"                    "------"
  118.  
  119. #bind "F1"                     "help"                          # Not yet implemented!
  120. #bind "C-F1"                   "help-context"                  # Not yet implemented!
  121. #\bind "F2"                     "buffer-write"
  122. #\bind "F3"                     "buffer-open"
  123. #bind "F4"                     "------"
  124. #bind "F5"                     "------"
  125. #bind "F6"                     "------"
  126. #bind "F7"                     "------"
  127. #bind "F8"                     "------"
  128. #bind "F9"                     "------"
  129. #bind "F10"                    "------"
  130.  
  131. \bind "M-x"            "command-execute"
  132.  
  133.  
  134. #
  135. # Motion group
  136. #
  137.  
  138. \bind "C-Right"                "word-forward"
  139. \bind "C-Left"                 "word-backward"
  140. \bind "C-Up"                   "paragraph-up"
  141. \bind "C-Down"                 "paragraph-down"
  142. \bind "Home"                   "buffer-begin"
  143. \bind "End"                    "buffer-end"
  144.  
  145. \bind "C-~S-greater"        "reference-goto"
  146. \bind "C-~S-less"         "reference-back"
  147.  
  148.  
  149. # The below are xemacs bindings
  150. #\bind "Home"                   "line-begin"
  151. #\bind "End"                    "line-end"
  152. #\bind "C-Home"                 "buffer-begin"
  153. #\bind "C-End"                  "buffer-end"
  154.  
  155.  
  156. #
  157. # Motion + select group
  158. #
  159.  
  160. \bind "S-Right"                "forward-select"
  161. \bind "S-Left"                 "backward-select"
  162. \bind "S-C-F"                  "forward-select"
  163. \bind "S-C-B"                  "backward-select"
  164. \bind "S-Up"                   "up-select"
  165. \bind "S-Down"                 "down-select"
  166. \bind "S-C-Right"              "word-forward-select"
  167. \bind "S-C-Left"               "word-backward-select"
  168. \bind "S-C-A"                  "line-begin-select"
  169. \bind "S-C-E"                  "line-end-select"
  170. \bind "S-C-Up"                 "paragraph-up-select"
  171. \bind "S-C-Down"               "paragraph-down-select"
  172. \bind "S-Home"                 "buffer-begin-select"
  173. \bind "S-End"                  "buffer-end-select"               
  174. \bind "S-Prior"                "screen-up-select"
  175. \bind "S-Next"                 "screen-down-select"
  176. \bind "S-C-Home"               "buffer-begin-select"
  177. \bind "S-C-End"                "buffer-end-select"
  178.  
  179.  
  180. #
  181. # Edit group
  182. #
  183.  
  184. \bind "C-Delete"        "word-delete-forward"
  185. \bind "M-d"            "word-delete-forward"
  186. \bind "C-BackSpace"        "word-delete-backward"
  187. \bind "M-Return"        "break-paragraph-keep-layout"
  188. \bind "C-Return"        "break-line"
  189. \bind "C-space"            "protected-space-insert"
  190. \bind "C-period"        "end-of-sentence-period-insert"
  191. \bind "M-period"        "dots-insert"
  192. \bind "M-w"            "copy"
  193. \bind "M-S-W"            "layout-copy"
  194. \bind "Escape"            "meta-prefix"
  195.  
  196.  
  197.  
  198. # Include menu and math bindings
  199.  
  200. \bind_file menus.bind
  201. \bind_file math.bind
  202.