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
|
;; Custom configuration for LaTeX editing
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
(require 'cdlatex)
|
||||||
|
|
||||||
(defun custom-compile-latex ()
|
(defun custom-compile-latex ()
|
||||||
"Run the `just' command -- the command I use to compile my environment."
|
"Run the `just' command -- the command I use to compile my environment."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
@ -22,6 +24,8 @@
|
||||||
(interactive)
|
(interactive)
|
||||||
(insert "\\(\\)")
|
(insert "\\(\\)")
|
||||||
(backward-char 2)))
|
(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)
|
(set (make-local-variable 'TeX-electric-math)
|
||||||
(cons "\\(" "\\)"))
|
(cons "\\(" "\\)"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue