mdarifs · 2022-02-18 17:53
The title says it. Wrote an interactive function so that when I am done compiling and finally just need the `.tex` file and the pdf file, I can invoke it and my directory will be clean of all the auxiliary files. Any suggestions to improve it are welcome. Link to the code [https://github.com/md-arif-shaikh/.emacs.d/blob/main/lisp/clean-latex.el](https://github.com/md-arif-shaikh/.emacs.d/blob/main/lisp/clean-latex.el)
graduale · 2022-02-18 18:23
Are you not happy with `TeX-clean`?
https://www.gnu.org/software/auctex/manual/auctex.html#Cleaning
idspispopd0 · 2022-02-18 23:36
For what it's worth, my understanding is OP can further customize `TeX-clean` behavior via `M-x customize-group` > `AUCTeX` > `TeX Command` > `Latex Cleanup Intermediate Suffixes`, `Latex Clean Output Suffixes`, etc.
mdarifs · 2022-02-19 03:40
Hey, thanks. I knew there was something already, as is the case for most of the times with Emacs, but anyway I tried this just to write some emacs-lisp for fun, to be honest. For others, as suggested I would recommend the built-ins.