Compare commits

...

2 Commits

Author SHA1 Message Date
TEC 9a1f6d7c93
Don't use depreciated doom variable EMACS28+ 2024-03-26 12:07:49 +08:00
TEC 1d1836b4ad
Turn off cdlatex in Org mode 2024-03-26 11:59:58 +08:00
1 changed files with 7 additions and 9 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
@ -13860,9 +13857,10 @@ This makes use of =aas= (/Auto Activating Snippets/) for CDLaTeX-like symbol inp
*** Fixes
In case of Emacs28,
In case of Emacs28:
#+begin_src emacs-lisp
(when EMACS28+
(when (>= emacs-major-version 28)
(add-hook 'latex-mode-hook #'TeX-latex-mode))
#+end_src