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 |
This has to be a string representing a key sequence in a format |
3908 |
arbitrary Elisp expression. The string has to adhere to a format |
understood by the `kbd' macro. This corresponds to the syntax |
3909 |
understood by the `kbd' macro which corresponds to the syntax |
usually used in the Emacs and Elisp manuals. |
|
usually used in the Emacs and Elisp manuals. The Elisp |
|
|
expression has to be suitable to be fed to `define-key'. |
|
3910 |
|
|
3911 |
Setting this variable directly does not take effect; |
Setting this variable directly does not take effect; |
3912 |
you have to restart Emacs." |
use \\[customize]." |
3913 |
:group 'LaTeX-math |
:group 'LaTeX-math |
3914 |
:type '(choice (string :tag "Key sequence") (sexp))) |
:initialize 'custom-initialize-default |
3915 |
|
:set '(lambda (symbol value) |
3916 |
|
(define-key LaTeX-math-mode-map (LaTeX-math-abbrev-prefix) t) |
3917 |
|
(set-default symbol value) |
3918 |
|
(define-key LaTeX-math-mode-map |
3919 |
|
(LaTeX-math-abbrev-prefix) LaTeX-math-keymap)) |
3920 |
|
:type '(string :tag "Key sequence")) |
3921 |
|
|
3922 |
(defun LaTeX-math-abbrev-prefix () |
(defun LaTeX-math-abbrev-prefix () |
3923 |
"Make a key definition from the variable `LaTeX-math-abbrev-prefix'." |
"Make a key definition from the variable `LaTeX-math-abbrev-prefix'." |