fix(emacs): set cdlatex-math-symbol-prefix
to $
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
8357b20f07
commit
301f1f2398
1 changed files with 4 additions and 0 deletions
|
@ -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 "\\(" "\\)"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue