]> git.lyx.org Git - lyx.git/blobdiff - lib/bind/xemacs.bind
A slightly buggy lfun all-insets-toggle.
[lyx.git] / lib / bind / xemacs.bind
index 2c8b88824581d17cdef80da916f6be4d265366f4..6b9e74ca8c29e99c1c4901f24d9efb986f1c3d4c 100644 (file)
@@ -1,23 +1,28 @@
-# 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
-#
-# ==================================================================
+# -*- text -*-
 
-#
-# This is the XEMACS flavour bind file, based on the bindings found 
+# file xemacs.bind
+# This file is part of LyX, the document processor.
+# Licence details can be found in the file COPYING.
+
+# author Lars Gullik Bjønnes
+# author Jean-Marc Lasgouttes
+# author Angus Leeming
+# author John Levon
+# author Allan Rae
+# author Dekel Tsur
+# author Jürgen Vigna
+# author Andrew Zabolotny
+
+# Full author contact details are available in file CREDITS.
+
+# 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 
+# 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-g"                    "cancel"
 
 # help in emacs
-\bind "C-h"                    "hyphenation-point-insert" 
+\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"                    "inset-toggle"
+\bind "C-o"                    "next-inset-toggle"
 \bind "C-p"                    "up"
 
 # this is "quoted-insert" a total different meaning from "quote-insert"
 \bind "C-q"                    "self-insert \""
 #bind "C-r"                    "------"
-\bind "C-s"                    "find-replace"
-\bind "M-~S-percent"           "find-replace"
+\bind "C-s"                    "dialog-show findreplace"
+\bind "M-~S-percent"           "dialog-show findreplace"
 
 # should be "chars-transpose" (swaps two chars)
 #bind "C-t"                    "------"
@@ -61,7 +66,6 @@
 \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
@@ -69,7 +73,8 @@
 \bind "C-~S-slash"             "undo"
 \bind "C-~S-underscore"        "undo"
 
-\bind "~S-C-quotedbl"           "self-insert \""
+\bind "~S-C-quotedbl"           "quote-insert single"
+\bind "~S-M-quotedbl"           "self-insert \""
 
 \bind "C-x a"                  "buffer-auto-save"
 # not currently supported
@@ -83,7 +88,7 @@
 # \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 h"                "dialog-show vclog"
 \bind "C-x v v"                "vc-check-in"
 \bind "C-x v u"                "vc-revert"
 \bind "C-x v c"                "vc-undo-last"
 \bind "S-C-Home"               "buffer-begin-select"
 \bind "S-C-End"                "buffer-end-select"
 
-
 #
 # Edit group
 #
 \bind "M-Return"               "break-paragraph-keep-layout"
 \bind "C-Return"               "break-line"
 \bind "C-S-L"                  "ligature-break-insert"
-\bind "C-space"                        "protected-space-insert"
+\bind "C-space"                        "space-insert protected"
+\bind "C-M-space"              "space-insert normal"
+\bind "S-C-space"              "space-insert thin"
 \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"
 
+# Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
+\bind "S-KP_Right"              "forward-select"
+\bind "S-KP_Left"               "backward-select"
+\bind "S-KP_Up"                 "up-select"
+\bind "S-KP_Down"               "down-select"
+\bind "S-C-KP_Right"            "word-forward-select"
+\bind "S-C-KP_Left"             "word-backward-select"
+\bind "S-C-KP_Up"               "paragraph-up-select"
+\bind "S-C-KP_Down"             "paragraph-down-select"
+\bind "S-KP_Home"               "line-begin-select"
+\bind "S-KP_End"                "line-end-select"
+\bind "S-KP_Prior"              "screen-up-select"
+\bind "S-KP_Next"               "screen-down-select"
+\bind "S-C-KP_Home"             "buffer-begin-select"
+\bind "S-C-KP_End"              "buffer-end-select"
+\bind "S-C-KP_Prior"            "buffer-begin-select"
+\bind "S-C-KP_Next"             "buffer-end-select"
+\bind "C-KP_Insert"             "copy"
+\bind "S-KP_Insert"             "paste"
+\bind "S-KP_Delete"             "cut"
+
+
 ## 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-l"                 "dialog-show latexlog"        # 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 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-c C-e S-q"            "layout Quotation"
 \bind "C-c C-e v"              "layout Quote"
 
-\bind "C-c C-e f"              "graphics-insert"  ## should be figure-float
-\bind "C-c C-e t"              "dialog-tabular-insert" ## should be table-float
+\bind "C-c C-e f"              "dialog-show-new-inset graphics"  ## should be figure-float
+\bind "C-c C-e t"              "tabular-insert" ## should be table-float
 
 \bind "C-c percent"            "layout Comment"
 
 ## 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-p"                        "dialog-show print"
 \bind "C-c C-r"                        "buffer-update dvi"     # tex region
 #
 ## End TeX mode
 \bind_file menus.bind
 \bind_file math.bind
 \bind_file latinkeys.bind
+\bind_file cyrkeys.bind
+\bind_file greekkeys.bind