Hi Shawn, this should do the trick:
--8<---------------cut here---------------start------------->8--- (with-eval-after-load "tex" (add-to-list 'TeX-command-list '("Latexindent" "latexindent -w -s %a" TeX-run-command nil t :help "Run Latexindent on file."))) --8<---------------cut here---------------end--------------->8--- However it doesn't revert the buffer automatically after running the command, so you should do that manually. Bye, Mosè On Wed, Jan 23, 2019 at 9:03 PM Shawn Way <s...@meco.com> wrote: > > I'm working on the Windows platform and I use the latexindent program to help > format the latex files I have, especially when working with tables. > > Is there an easy way to make auctex perform "latexindent -w -s" on the > current buffer's file? I couldn't figure out how to customize auctex to this > degree. > > Thanks for your thoughts. > > Shawn Way > > > > > _______________________________________________ > auctex-devel mailing list > auctex-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/auctex-devel > _______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel