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: Shawn Way
Subject: Re: [AUCTeX-devel] Auctex and latexindent
Date: Fri, 25 Jan 2019 13:14:02 +0000

Thank you kindly!  This will definitely help out!


Shawn Way, PE

-----Original Message-----
From: Mosè Giordano <address@hidden> 
Sent: Thursday, January 24, 2019 8:17 PM
To: Shawn Way <address@hidden>
Cc: address@hidden
Subject: Re: [AUCTeX-devel] Auctex and latexindent

** External Email **: This email originated from outside of the organization. 
Do not click links or open attachments unless you recognize the sender and know 
the content is safe.



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]