emacs-devel
[Top][All Lists]
Advanced

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

Re: How to run indent command in arbitrary buffer while respecting user


From: Tassilo Horn
Subject: Re: How to run indent command in arbitrary buffer while respecting user settings?
Date: Fri, 30 Jun 2023 07:01:47 +0200
User-agent: mu4e 1.11.7; emacs 30.0.50

Ihor Radchenko <yantar92@posteo.net> writes:

> Is there any reliable way to perform indentation in an arbitrary major
> mode programmatically?

Does `indent-region' do the right thing?  That honors
`indent-region-function' if set (which it is also in cc-modes) or use
`indent-according-to-mode' (which uses `indent-line-function')?

Bye,
Tassilo



reply via email to

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