1
0
Fork 0

fix(emacs): set cdlatex-math-symbol-prefix to $

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2023-12-29 04:38:27 -05:00
parent 8357b20f07
commit 301f1f2398
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -3,6 +3,8 @@
;; Custom configuration for LaTeX editing
;;; Code:
(require 'cdlatex)
(defun custom-compile-latex ()
"Run the `just' command -- the command I use to compile my environment."
(interactive)
@ -22,6 +24,8 @@
(interactive)
(insert "\\(\\)")
(backward-char 2)))
(keymap-substitute cdlatex-mode-map 'cdlatex-dollar 'cdlatex-math-symbol)
(setq cdlatex-math-symbol-prefix ?$)
(set (make-local-variable 'TeX-electric-math)
(cons "\\(" "\\)"))