fix(emacs): modify latex keybindings
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
ed9fd86647
commit
0e37bfae2c
1 changed files with 9 additions and 2 deletions
|
@ -26,8 +26,14 @@
|
|||
(local-set-key (kbd "C-c C-h")
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(insert "\\(\\)")
|
||||
(backward-char 2)))
|
||||
(unless (texmathp)
|
||||
(insert "\\(\\)")
|
||||
(backward-char 2))))
|
||||
(local-set-key (kbd "C-c C-/")
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(when (texmathp)
|
||||
(LaTeX-math-frac))))
|
||||
(keymap-substitute cdlatex-mode-map 'cdlatex-dollar 'cdlatex-math-symbol)
|
||||
(setq cdlatex-math-symbol-prefix ?$)
|
||||
|
||||
|
@ -42,6 +48,7 @@
|
|||
(setq cdlatex-math-symbol-alist
|
||||
'((?I ("\\int" "\\Im"))
|
||||
(?L ("\\Lambda" "\\lim"))
|
||||
(?S ("\\Sigma" "\\sum"))
|
||||
(?0 ("\\varnothing" "\\emptyset"))
|
||||
(?- ("\\not" "\\neg"))
|
||||
(?+ ("\\cup" "\\cap"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue