I tried my first steps with emacs lisp to remove the element "\\.synctex\\.gz" from LaTeX-clean-intermediate-suffixes:
(eval-after-load 'latex
'(setq my-LaTeX-clean-intermediate-suffixes (remove '"\\.synctex\\.gz" LaTeX-clean-intermediate-suffixes)); that's not working
'(setq LaTeX-clean-intermediate-suffixes
(append my-LaTeX-clean-intermediate-suffixes (list "-blx\\.bib" "\\.run\\.xml"))))
How can I remove this element here? I found remove and delete, tried them both, but I get an wrong-number-of-arguments-type of error.
Update
I tried this:
(eval-after-load 'latex
(setq LaTeX-clean-intermediate-suffixes (delete "\\.synctex\\.gz" LaTeX-clean-intermediate-suffixes))
'(setq LaTeX-clean-intermediate-suffixes
(append LaTeX-clean-intermediate-suffixes (list "-blx\\.bib" "\\.run\\.xml"))))
but I receive quite a long output in Backtrace 🙁
The error you see is not due to manipulations of the list but caused by a wrong usage of eval-after-load. This function allows only two parameters:
(eval-after-load FILE FORM). So your snippet should read either(as multiple assignments are allowed in a single setq statement) or the more general variant (subsuming as many forms as you wish within a single
progn):