Update form of org-edit-latex-environment advice

Fix typos, and add a needed &rest to the arguments.
This commit is contained in:
TEC 2024-03-09 00:08:10 +08:00
parent e523a3ec2a
commit 6087a89abb
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 1 deletions

View File

@ -8422,7 +8422,7 @@ It's also nice to be able to use ~cdlatex~.
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-emv-after-insert ()
(defadvice! +org-edit-latex-env-after-insert-a (&rest _)
:after #'org-cdlatex-environment-indent
(org-edit-latex-environment))
#+end_src