[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: formatting buffer with external tool
From: |
Stephen Berman |
Subject: |
Re: formatting buffer with external tool |
Date: |
Tue, 12 Apr 2022 14:01:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
On Tue, 12 Apr 2022 14:53:18 +0300 Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Luca Ferrari <fluca1978@gmail.com>
>> Date: Tue, 12 Apr 2022 13:45:03 +0200
>>
>> Hi all,
>> how can I define a command so that instead of calling indent-region I
>> pass the region content to an external program and get back the result
>> into the region?
>
> Use shell-command-on-region with 4th arg not a buffer and not nil.
Another possibility is replace-region-contents.
Steve Berman