2003-08-22 10:37:26 +00:00
|
|
|
# -*- text -*-
|
|
|
|
|
2003-08-22 09:36:41 +00:00
|
|
|
# file emacs.bind
|
|
|
|
# This file is part of LyX, the document processor.
|
|
|
|
# Licence details can be found in the file COPYING.
|
|
|
|
|
2007-11-24 13:52:46 +00:00
|
|
|
# author Lars Gullik Bjønnes
|
2003-08-22 09:36:41 +00:00
|
|
|
# author Jean-Marc Lasgouttes
|
|
|
|
# author Angus Leeming
|
|
|
|
# author John Levon
|
|
|
|
# author Allan Rae
|
2007-11-24 13:52:46 +00:00
|
|
|
# author Jürgen Spitzmüller
|
2003-08-22 09:36:41 +00:00
|
|
|
# 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 EMACS flavour bind file, based on the bindings found
|
1999-09-27 18:44:28 +00:00
|
|
|
# in the Emacs editor.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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/emacs.bind
|
|
|
|
#
|
|
|
|
# Happy tuning!
|
|
|
|
|
2020-12-29 17:03:46 +00:00
|
|
|
Format 5
|
2011-01-18 15:42:27 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
\bind "C-~S-at" "mark-on"
|
|
|
|
\bind "C-a" "line-begin"
|
|
|
|
\bind "C-b" "char-backward"
|
|
|
|
#bind "C-c" "------" // used as users prefix
|
2022-02-21 13:00:14 +00:00
|
|
|
\bind "C-d" "char-delete-forward confirm"
|
1999-09-27 18:44:28 +00:00
|
|
|
\bind "C-e" "line-end"
|
|
|
|
\bind "C-f" "char-forward"
|
|
|
|
\bind "C-g" "cancel"
|
|
|
|
|
|
|
|
# help in emacs
|
2008-03-21 16:20:32 +00:00
|
|
|
\bind "C-h" "specialchar-insert hyphenation"
|
2007-12-06 11:04:56 +00:00
|
|
|
\bind "C-M-minus" "specialchar-insert nobreakdash"
|
2008-03-21 16:25:17 +00:00
|
|
|
\bind "C-i" "space-insert hfill"
|
2012-09-29 16:06:42 +00:00
|
|
|
\bind "C-j" "paragraph-break"
|
1999-09-27 18:44:28 +00:00
|
|
|
\bind "C-k" "line-delete-forward"
|
2024-09-05 20:05:38 +00:00
|
|
|
\bind "C-l" "scroll caret toggle"
|
1999-09-27 18:44:28 +00:00
|
|
|
\bind "C-m" "mark-toggle"
|
|
|
|
\bind "C-n" "down"
|
2009-03-30 13:49:52 +00:00
|
|
|
\bind "C-o" "inset-toggle"
|
2018-07-07 09:29:40 +00:00
|
|
|
|
|
|
|
# facemenu-menu in emacs
|
|
|
|
\bind "M-o" "inset-settings"
|
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" "------"
|
2021-02-16 12:35:04 +00:00
|
|
|
\bind "C-s" "dialog-show findreplace"
|
|
|
|
\bind "C-S-s" "dialog-show findreplaceadv"
|
|
|
|
\bind "M-~S-percent" "dialog-show findreplaceadv"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2001-05-23 16:15:14 +00:00
|
|
|
\bind "C-t" "chars-transpose"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
# universal argument in emacs
|
|
|
|
\bind "C-u" "font-underline"
|
|
|
|
|
|
|
|
# better name would be "scroll-up" as in emacs
|
|
|
|
\bind "C-v" "screen-down"
|
|
|
|
|
|
|
|
\bind "C-w" "cut"
|
|
|
|
#bind "C-x" "------"
|
|
|
|
\bind "C-y" "paste"
|
|
|
|
|
|
|
|
#should be "lyx-iconify"
|
|
|
|
#bind "C-z" "------"
|
|
|
|
|
|
|
|
\bind "C-~S-slash" "undo"
|
|
|
|
\bind "C-~S-underscore" "undo"
|
|
|
|
|
2016-12-27 07:39:06 +00:00
|
|
|
\bind "~S-M-quotedbl" "quote-insert inner"
|
|
|
|
\bind "~S-C-quotedbl" "quote-insert outer auto plain"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
\bind "C-x a" "buffer-auto-save"
|
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"
|
2012-09-29 12:08:36 +00:00
|
|
|
\bind "C-x k" "buffer-close"
|
2023-07-07 08:51:51 +00:00
|
|
|
\bind "C-x o" "tab-group-next"
|
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 bracketleft" "screen-up"
|
|
|
|
\bind "C-x bracketright" "screen-down"
|
|
|
|
\bind "C-x C-a" "buffer-auto-save"
|
2006-08-08 21:41:16 +00:00
|
|
|
\bind "C-x C-b" "menu-open view"
|
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"
|
|
|
|
\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"
|
2012-09-29 12:08:36 +00:00
|
|
|
\bind "C-Next" "buffer-next"
|
|
|
|
\bind "C-Prior" "buffer-previous"
|
2015-04-14 08:51:39 +00:00
|
|
|
\bind "S-F7" "thesaurus-entry"
|
|
|
|
\bind "S-F8" "dialog-show spellchecker"
|
2012-09-29 12:08:36 +00:00
|
|
|
\bind "C-x 0" "view-close"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2014-01-27 11:52:31 +00:00
|
|
|
# Window commands
|
|
|
|
\bind "C-x 5 2" "window-new"
|
|
|
|
\bind "C-x 5 0" "window-close"
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
# this is "upcase-region" in emacs
|
|
|
|
#\bind "C-x C-u" "undo"
|
|
|
|
\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!
|
2020-03-31 06:01:17 +00:00
|
|
|
\bind "F2" "buffer-write force"
|
|
|
|
#\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"
|
2015-05-21 12:05:36 +00:00
|
|
|
\bind "C-M-o" "dialog-show toc"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2009-05-11 00:05:51 +00:00
|
|
|
\bind "M-equal" "buffer-zoom-in"
|
|
|
|
\bind "M-plus" "buffer-zoom-in"
|
|
|
|
\bind "M-minus" "buffer-zoom-out"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Motion group
|
|
|
|
#
|
|
|
|
|
2016-01-27 17:22:32 +00:00
|
|
|
\bind "M-Up" "command-alternatives outline-up; paragraph-move-up; tabular-feature move-row-up"
|
|
|
|
\bind "M-Down" "command-alternatives outline-down; paragraph-move-down; tabular-feature move-row-down"
|
|
|
|
\bind "M-Right" "tabular-feature move-column-right"
|
|
|
|
\bind "M-Left" "tabular-feature move-column-left"
|
2007-10-28 20:35:57 +00:00
|
|
|
\bind "C-Right" "word-right"
|
|
|
|
\bind "C-Left" "word-left"
|
2002-10-11 09:21:02 +00:00
|
|
|
\bind "C-Up" "paragraph-up"
|
|
|
|
\bind "C-Down" "paragraph-down"
|
|
|
|
\bind "Home" "buffer-begin"
|
|
|
|
\bind "End" "buffer-end"
|
|
|
|
\bind "M-~S-less" "buffer-begin"
|
|
|
|
\bind "M-~S-greater" "buffer-end"
|
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"
|
2007-03-29 03:41:55 +00:00
|
|
|
\bind "C-~S-6" "bookmark-goto 6"
|
|
|
|
\bind "C-~S-7" "bookmark-goto 7"
|
|
|
|
\bind "C-~S-8" "bookmark-goto 8"
|
|
|
|
\bind "C-~S-9" "bookmark-goto 9"
|
2001-02-13 16:40:19 +00:00
|
|
|
\bind "C-M-~S-1" "bookmark-save 1"
|
2007-03-29 03:41:55 +00:00
|
|
|
\bind "C-M-~S-2" "bookmark-save 2"
|
|
|
|
\bind "C-M-~S-3" "bookmark-save 3"
|
|
|
|
\bind "C-M-~S-4" "bookmark-save 4"
|
|
|
|
\bind "C-M-~S-5" "bookmark-save 5"
|
|
|
|
\bind "C-M-~S-6" "bookmark-save 6"
|
|
|
|
\bind "C-M-~S-7" "bookmark-save 7"
|
|
|
|
\bind "C-M-~S-8" "bookmark-save 8"
|
|
|
|
\bind "C-M-~S-9" "bookmark-save 9"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
# The below are xemacs bindings
|
|
|
|
#\bind "Home" "line-begin"
|
|
|
|
#\bind "End" "line-end"
|
|
|
|
#\bind "C-Home" "buffer-begin"
|
|
|
|
#\bind "C-End" "buffer-end"
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Motion + select group
|
|
|
|
#
|
|
|
|
|
2007-10-22 22:18:52 +00:00
|
|
|
\bind "S-Right" "char-right-select"
|
|
|
|
\bind "S-Left" "char-left-select"
|
|
|
|
\bind "S-C-F" "char-forward-select"
|
|
|
|
\bind "S-C-B" "char-backward-select"
|
1999-09-27 18:44:28 +00:00
|
|
|
\bind "S-Up" "up-select"
|
|
|
|
\bind "S-Down" "down-select"
|
2007-10-28 20:35:57 +00:00
|
|
|
\bind "S-C-Right" "word-right-select"
|
|
|
|
\bind "S-C-Left" "word-left-select"
|
1999-09-27 18:44:28 +00:00
|
|
|
\bind "S-C-A" "line-begin-select"
|
|
|
|
\bind "S-C-E" "line-end-select"
|
|
|
|
\bind "S-C-Up" "paragraph-up-select"
|
|
|
|
\bind "S-C-Down" "paragraph-down-select"
|
|
|
|
\bind "S-Home" "buffer-begin-select"
|
2003-10-13 09:50:10 +00:00
|
|
|
\bind "S-End" "buffer-end-select"
|
1999-09-27 18:44:28 +00:00
|
|
|
\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
|
|
|
|
#
|
|
|
|
|
2022-02-21 13:00:14 +00:00
|
|
|
\bind "C-Delete" "word-delete-forward confirm"
|
|
|
|
\bind "M-d" "word-delete-forward confirm"
|
|
|
|
\bind "C-BackSpace" "word-delete-backward confirm"
|
2012-09-29 16:06:42 +00:00
|
|
|
\bind "M-Return" "paragraph-break inverse"
|
2008-03-26 08:10:01 +00:00
|
|
|
\bind "C-Return" "newline-insert newline"
|
|
|
|
\bind "C-S-Return" "newline-insert linebreak"
|
2017-02-16 14:29:15 +00:00
|
|
|
\bind "M-S-Right" "depth-increment"
|
|
|
|
\bind "M-S-Left" "depth-decrement"
|
2007-12-06 11:04:56 +00:00
|
|
|
\bind "C-S-L" "specialchar-insert ligature-break"
|
2014-02-15 09:02:44 +00:00
|
|
|
\bind "C-space" "command-alternatives math-space ; space-insert protected"
|
2008-11-03 11:30:11 +00:00
|
|
|
\bind "nobreakspace" "space-insert protected"
|
2007-12-06 11:04:56 +00:00
|
|
|
\bind "C-M-space" "space-insert normal"
|
|
|
|
\bind "S-C-space" "space-insert thin"
|
2008-10-12 14:42:38 +00:00
|
|
|
\bind "M-~S-slash" "specialchar-insert slash"
|
2023-03-15 18:04:36 +00:00
|
|
|
\bind "C-~S-period" "specialchar-insert end-of-sentence"
|
|
|
|
\bind "M-~S-period" "specialchar-insert dots"
|
2003-01-08 09:03:32 +00:00
|
|
|
\bind "M-w" "copy"
|
|
|
|
\bind "Escape" "meta-prefix"
|
2015-05-28 13:43:12 +00:00
|
|
|
\bind "M-u" "word-upcase partial"
|
|
|
|
\bind "M-l" "word-lowcase partial"
|
|
|
|
# This conflicts with the character menu.
|
|
|
|
#bind "M-c" "word-capitalize partial"
|
2003-01-08 09:03:32 +00:00
|
|
|
|
2002-07-10 14:23:24 +00:00
|
|
|
# Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
|
2007-10-22 22:18:52 +00:00
|
|
|
\bind "S-KP_Right" "char-right-select"
|
|
|
|
\bind "S-KP_Left" "char-left-select"
|
2002-07-10 14:23:24 +00:00
|
|
|
\bind "S-KP_Up" "up-select"
|
|
|
|
\bind "S-KP_Down" "down-select"
|
2007-10-28 20:35:57 +00:00
|
|
|
\bind "S-C-KP_Right" "word-right-select"
|
|
|
|
\bind "S-C-KP_Left" "word-left-select"
|
2002-07-10 14:23:24 +00:00
|
|
|
\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"
|
2015-04-08 03:18:21 +00:00
|
|
|
\bind "S-C-KP_Prior" "buffer-move-previous"
|
|
|
|
\bind "S-C-KP_Next" "buffer-move-next"
|
2016-11-22 12:10:57 +00:00
|
|
|
\bind "C-x h" "command-sequence buffer-begin ; buffer-end-select" # select all
|
2015-01-22 09:34:02 +00:00
|
|
|
\bind "M-h" "inset-select-all"
|
2002-07-10 14:23:24 +00:00
|
|
|
\bind "C-KP_Insert" "copy"
|
|
|
|
\bind "S-KP_Insert" "paste"
|
|
|
|
\bind "S-KP_Delete" "cut"
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
# Include menu and math bindings
|
|
|
|
|
2000-10-09 12:30:52 +00:00
|
|
|
\bind_file menus.bind
|
1999-09-27 18:44:28 +00:00
|
|
|
\bind_file math.bind
|
2001-05-16 07:53:23 +00:00
|
|
|
\bind_file latinkeys.bind
|
2002-07-16 22:03:20 +00:00
|
|
|
\bind_file cyrkeys.bind
|
|
|
|
\bind_file greekkeys.bind
|
2015-05-28 13:43:12 +00:00
|
|
|
|
|
|
|
# the following bindings have to be adapted w.r.t. menus.bind
|
|
|
|
\bind "M-c Down" "word-lowcase partial"
|
|
|
|
\bind "M-c Up" "word-upcase partial"
|
|
|
|
\bind "M-c Right" "word-capitalize partial"
|
|
|
|
|