1
0
Fork 0

fix(emacs): modify latex keybindings

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-01-23 16:33:17 -05:00
parent ed9fd86647
commit 0e37bfae2c
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -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"))