Turn off cdlatex in Org mode

This commit is contained in:
TEC 2024-03-26 11:59:43 +08:00
parent 71bfab8127
commit 1d1836b4ad
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 4 additions and 7 deletions

View File

@ -8664,15 +8664,12 @@ be nice to have a function to convert =org-ref= citations to =org-cite= forms.
(match-string 2))))))))
#+end_src
***** cdlatex
***** cdlatex environments
It's also nice to be able to use ~cdlatex~.
#+begin_src emacs-lisp
(add-hook 'org-mode-hook 'turn-on-org-cdlatex)
#+end_src
I prefer =auto-activating-snippets= to =cdlatex=, but do like
~org-cdlatex-environment-indent~ (bound to =C-c }=). I almost always want to edit
them afterwards though, so let's make that happen by default.
It's handy to be able to quickly insert environments with =C-c }=. I almost always
want to edit them afterwards though, so let's make that happen by default.
#+begin_src emacs-lisp
(defadvice! +org-edit-latex-env-after-insert-a (&rest _)
:after #'org-cdlatex-environment-indent