3903 |
MENU and CHARACTER, see `LaTeX-math-list' for details.") |
MENU and CHARACTER, see `LaTeX-math-list' for details.") |
3904 |
|
|
3905 |
(defcustom LaTeX-math-abbrev-prefix "`" |
(defcustom LaTeX-math-abbrev-prefix "`" |
3906 |
"Prefix key for use in `LaTeX-math-mode'." |
"Prefix key for use in `LaTeX-math-mode'. |
3907 |
|
This can either be a string representing a key sequence or an |
3908 |
|
arbitrary Elisp expression. The string has to adhere to a format |
3909 |
|
understood by the `kbd' macro which corresponds to the syntax |
3910 |
|
usually used in the Emacs and Elisp manuals. The Elisp |
3911 |
|
expression has to be suitable to be fed to `define-key'. |
3912 |
|
|
3913 |
|
Setting this variable directly does not take effect; |
3914 |
|
you have to restart Emacs." |
3915 |
:group 'LaTeX-math |
:group 'LaTeX-math |
3916 |
:type 'sexp) |
:type '(choice (string :tag "Key sequence") (sexp))) |
3917 |
|
|
3918 |
|
(defun LaTeX-math-abbrev-prefix () |
3919 |
|
"Make a key definition from the variable `LaTeX-math-abbrev-prefix'." |
3920 |
|
(if (stringp LaTeX-math-abbrev-prefix) |
3921 |
|
(read-kbd-macro LaTeX-math-abbrev-prefix) |
3922 |
|
LaTeX-math-abbrev-prefix)) |
3923 |
|
|
3924 |
(defvar LaTeX-math-keymap |
(defvar LaTeX-math-keymap |
3925 |
(let ((map (make-sparse-keymap))) |
(let ((map (make-sparse-keymap))) |
3926 |
(define-key map LaTeX-math-abbrev-prefix 'self-insert-command) |
(define-key map (LaTeX-math-abbrev-prefix) 'self-insert-command) |
3927 |
map) |
map) |
3928 |
"Keymap used for `LaTeX-math-mode' commands.") |
"Keymap used for `LaTeX-math-mode' commands.") |
3929 |
|
|
4005 |
commands are defined: |
commands are defined: |
4006 |
|
|
4007 |
\\{LaTeX-math-mode-map}" |
\\{LaTeX-math-mode-map}" |
4008 |
nil nil (list (cons LaTeX-math-abbrev-prefix LaTeX-math-keymap)) |
nil nil (list (cons (LaTeX-math-abbrev-prefix) LaTeX-math-keymap)) |
4009 |
(if LaTeX-math-mode |
(if LaTeX-math-mode |
4010 |
(easy-menu-add LaTeX-math-mode-menu LaTeX-math-mode-map) |
(easy-menu-add LaTeX-math-mode-menu LaTeX-math-mode-map) |
4011 |
(easy-menu-remove LaTeX-math-mode-menu)) |
(easy-menu-remove LaTeX-math-mode-menu)) |