auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Auctex and latexindent


From: Mosè Giordano
Subject: Re: [AUCTeX-devel] Auctex and latexindent
Date: Fri, 25 Jan 2019 02:17:13 +0000

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 <address@hidden> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/auctex-devel
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]