2003-08-22 10:37:26 +00:00
|
|
|
|
# -*- text -*-
|
|
|
|
|
|
2003-08-22 09:36:41 +00:00
|
|
|
|
# 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<42>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.
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2003-10-13 09:50:10 +00:00
|
|
|
|
# This is the XEMACS flavour bind file, based on the bindings found
|
1999-09-27 18:44:28 +00:00
|
|
|
|
# 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
|
2003-10-13 09:50:10 +00:00
|
|
|
|
# with every new install of LyX and your changes will be lost.
|
|
|
|
|
# Instead, customize a copy of this file placed in
|
1999-09-27 18:44:28 +00:00
|
|
|
|
# ~/.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
|
2003-10-13 09:50:10 +00:00
|
|
|
|
\bind "C-h" "hyphenation-point-insert"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\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"
|
2004-03-30 12:36:33 +00:00
|
|
|
|
\bind "C-o" "next-inset-toggle"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-p" "up"
|
|
|
|
|
|
|
|
|
|
# this is "quoted-insert" a total different meaning from "quote-insert"
|
2001-07-23 09:11:14 +00:00
|
|
|
|
\bind "C-q" "self-insert \""
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#bind "C-r" "------"
|
2003-06-19 16:49:45 +00:00
|
|
|
|
\bind "C-s" "dialog-show findreplace"
|
|
|
|
|
\bind "M-~S-percent" "dialog-show findreplace"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
|
|
|
|
|
#should be "lyx-iconify"
|
|
|
|
|
#bind "C-z" "------" # see end of file
|
|
|
|
|
|
|
|
|
|
\bind "C-~S-slash" "undo"
|
|
|
|
|
\bind "C-~S-underscore" "undo"
|
|
|
|
|
|
2005-10-25 08:39:15 +00:00
|
|
|
|
\bind "~S-M-quotedbl" "quote-insert single"
|
|
|
|
|
\bind "~S-C-quotedbl" "self-insert \""
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
\bind "C-x a" "buffer-auto-save"
|
2000-02-22 07:32:08 +00:00
|
|
|
|
# not currently supported
|
2000-07-24 13:53:19 +00:00
|
|
|
|
#\bind "C-x b" "buffer-previous"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-x d" "buffer-new"
|
2000-09-11 15:42:17 +00:00
|
|
|
|
\bind "C-x g" "buffer-view ps"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-x k" "buffer-close"
|
2000-09-11 15:42:17 +00:00
|
|
|
|
\bind "C-x p" "buffer-view dvi"
|
|
|
|
|
\bind "C-x r" "buffer-update dvi"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
# Should have been "buffer-write-some"
|
|
|
|
|
# \bind "C-x s" "buffer-write"
|
2000-09-11 15:42:17 +00:00
|
|
|
|
\bind "C-x t" "buffer-update dvi"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-x u" "undo"
|
2003-06-19 16:49:45 +00:00
|
|
|
|
\bind "C-x v h" "dialog-show vclog"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\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"
|
2000-12-06 13:41:44 +00:00
|
|
|
|
\bind "C-x C-b" "menu-open documents" # list all buffers
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-x C-c" "lyx-quit"
|
|
|
|
|
\bind "C-x C-d" "buffer-new"
|
2001-03-07 14:25:31 +00:00
|
|
|
|
\bind "C-x C-f" "file-open"
|
2000-09-11 15:42:17 +00:00
|
|
|
|
\bind "C-x C-g" "buffer-view ps"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-x C-l" "word-lowcase" # downcase-region!
|
2000-09-11 15:42:17 +00:00
|
|
|
|
\bind "C-x C-p" "buffer-view dvi"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-x C-q" "buffer-toggle-read-only"
|
2000-09-11 15:42:17 +00:00
|
|
|
|
#\bind "C-x C-r" "buffer-update dvi"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-x C-s" "buffer-write"
|
2000-09-11 15:42:17 +00:00
|
|
|
|
\bind "C-x C-t" "buffer-update dvi"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-x C-u" "word-upcase" # upcase-region!
|
|
|
|
|
\bind "C-x C-w" "buffer-write-as"
|
2004-10-22 10:24:55 +00:00
|
|
|
|
\bind "C-Next" "buffer-next"
|
|
|
|
|
\bind "C-Prior" "buffer-previous"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
#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"
|
2001-03-07 14:25:31 +00:00
|
|
|
|
#\bind "F3" "file-open"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#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
|
2002-03-19 11:17:46 +00:00
|
|
|
|
\bind "Tab" "depth-increment"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2005-05-09 18:28:30 +00:00
|
|
|
|
\bind "C-~S-greater" "label-goto"
|
2001-02-07 07:34:37 +00:00
|
|
|
|
\bind "C-~S-less" "bookmark-goto 0"
|
2001-02-13 16:40:19 +00:00
|
|
|
|
\bind "C-~S-1" "bookmark-goto 1"
|
|
|
|
|
\bind "C-~S-2" "bookmark-goto 2"
|
|
|
|
|
\bind "C-~S-3" "bookmark-goto 3"
|
2005-01-15 18:36:02 +00:00
|
|
|
|
\bind "C-~S-4" "bookmark-goto 4"
|
|
|
|
|
\bind "C-~S-5" "bookmark-goto 5"
|
2001-02-13 16:40:19 +00:00
|
|
|
|
\bind "C-M-~S-1" "bookmark-save 1"
|
|
|
|
|
\bind "C-M-~S-2" "bookmark-save 2"
|
|
|
|
|
\bind "C-M-~S-3" "bookmark-save 3"
|
2005-01-15 18:36:02 +00:00
|
|
|
|
\bind "C-M-~S-4" "bookmark-save 4"
|
|
|
|
|
\bind "C-M-~S-5" "bookmark-save 5"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# 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"
|
|
|
|
|
|
2003-01-08 09:03:32 +00:00
|
|
|
|
#
|
|
|
|
|
# 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-S-L" "ligature-break-insert"
|
2003-05-22 10:40:57 +00:00
|
|
|
|
\bind "C-space" "space-insert protected"
|
2004-02-20 10:32:44 +00:00
|
|
|
|
\bind "C-M-space" "space-insert normal"
|
|
|
|
|
\bind "S-C-space" "space-insert thin"
|
2003-01-08 09:03:32 +00:00
|
|
|
|
\bind "C-period" "end-of-sentence-period-insert"
|
|
|
|
|
\bind "M-period" "dots-insert"
|
|
|
|
|
\bind "M-w" "copy"
|
|
|
|
|
\bind "Escape" "meta-prefix"
|
|
|
|
|
|
2002-07-10 14:23:24 +00:00
|
|
|
|
# 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"
|
2003-10-13 09:50:10 +00:00
|
|
|
|
\bind "S-KP_End" "line-end-select"
|
2002-07-10 14:23:24 +00:00
|
|
|
|
\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"
|
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
## 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).
|
|
|
|
|
##
|
2003-06-19 16:49:45 +00:00
|
|
|
|
\bind "C-c C-l" "dialog-show latexlog" # show warning log
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\bind "C-c C-o" "error-next"
|
|
|
|
|
\bind "C-c C-v" "buffer-chktex" # validate
|
|
|
|
|
|
|
|
|
|
\bind "C-z space" "drop-layouts-choice"
|
2003-10-13 09:50:10 +00:00
|
|
|
|
\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"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
\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
|
|
|
|
|
|
2001-05-29 12:40:26 +00:00
|
|
|
|
\bind "C-c ~S-asciitilde" "math-mode"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
\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"
|
|
|
|
|
|
2003-05-03 19:21:50 +00:00
|
|
|
|
\bind "C-c C-e f" "dialog-show-new-inset graphics" ## should be figure-float
|
2002-08-05 16:50:03 +00:00
|
|
|
|
\bind "C-c C-e t" "tabular-insert" ## should be table-float
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
\bind "C-c percent" "layout Comment"
|
|
|
|
|
|
|
|
|
|
\bind "C-c Return" "break-paragraph-keep-layout"
|
|
|
|
|
#
|
|
|
|
|
## End AucTeX
|
|
|
|
|
#
|
|
|
|
|
## Start TeX mode, some overlap with AucTeX mode
|
|
|
|
|
#
|
2000-09-11 15:42:17 +00:00
|
|
|
|
\bind "C-c C-b" "buffer-update dvi"
|
2003-06-19 16:49:45 +00:00
|
|
|
|
\bind "C-c C-p" "dialog-show print"
|
2000-09-11 15:42:17 +00:00
|
|
|
|
\bind "C-c C-r" "buffer-update dvi" # tex region
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#
|
|
|
|
|
## End TeX mode
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
################################
|
|
|
|
|
# Include menu and math bindings
|
|
|
|
|
|
|
|
|
|
\bind_file menus.bind
|
|
|
|
|
\bind_file math.bind
|
2001-06-01 13:06:59 +00:00
|
|
|
|
\bind_file latinkeys.bind
|
2002-07-16 22:03:20 +00:00
|
|
|
|
\bind_file cyrkeys.bind
|
|
|
|
|
\bind_file greekkeys.bind
|