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: Uwe Brauer
Subject: Re: [AUCTeX-devel] Auctex and latexindent
Date: Fri, 25 Jan 2019 09:32:52 +0100


Sent from my iPad

> On 25. Jan 2019, at 03:17, Mosè Giordano <address@hidden> wrote:
> 
> 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.



You could use auto-revert mode.


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

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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