Could someone help me to figure out what the template to add a new symbol to LaTeX-math-list
is?
I am trying to extend the available list with two sequences, not exactly symbols; I am not sure if this is possible. So far, I ended up with the following line in .emacs
(setq LaTeX-math-list '((?\C-w (lambda () "\\Wec\{\}") "" nil)
(?\C-v (lambda () "\\Bec\{\}") "" nil)))
After enabling math mode, the additional keybindings are visible (with lambda
at each item) but when I try to run any of them I get the following error:
Wrong type argument: commandp, (lambda nil "\\Wec{}")
I am currently learning Lisp so this is as far as I could get. Hope this is solvable. Thanks.