From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: How to disable auto-indent for a specific mode?
Date: Sat, 18 Sep 2021 16:34:41 +0200 [thread overview]
Message-ID: <87h7ei7y0u.fsf@telefonica.net> (raw)
In-Reply-To: m24kail4oj.fsf@codeisgreat.org
Pankaj Jangid <pankaj@codeisgreat.org> writes:
> I am using plantuml-mode for some UML diagrams. But I discovered that
> the auto-indent is broken. And the project doesn’t seem to be
> active. But to be honest, I haven’t yet contacted the maintainer of the
> package. I’ll definitely do.
>
> For the time being, I want to disable auto-indent for this particular
> mode? Is there a way to suppress that? Or is this something that is
> controlled by a mode specific variable?
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))))
next prev parent reply other threads:[~2021-09-18 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-18 7:32 How to disable auto-indent for a specific mode? Pankaj Jangid
2021-09-18 14:34 ` Óscar Fuentes [this message]
2021-09-19 2:35 ` Pankaj Jangid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7ei7y0u.fsf@telefonica.net \
--to=ofv@wanadoo.es \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.