help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to disable auto-indent for a specific mode?


From: Pankaj Jangid
Subject: Re: How to disable auto-indent for a specific mode?
Date: Sun, 19 Sep 2021 08:05:27 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

Óscar Fuentes <ofv@wanadoo.es> writes:

> A quick look at
>
> https://github.com/skuro/plantuml-mode/blob/develop/plantuml-mode.el
>
> shows that it is using its own indentation function, and it is not
> customizable.
>
> You can modify the source code or use a hook to set the local variable
> indent-line-function to something else (untested):
>
> (add-hook 'plantuml-mode-hook
>           (lambda ()
>             (setq indent-line-function (lambda () 'noindent))))

Thanks. This worked for me. I need to look a bit more into it. That I’ll
do. Thanks for pointing to the right direction.

Currently, TAB is following weird indentation rules. That I must fix.



reply via email to

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