From: Pankaj Jangid <pankaj@codeisgreat.org>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to disable auto-indent for a specific mode?
Date: Sun, 19 Sep 2021 08:05:27 +0530 [thread overview]
Message-ID: <m2ee9l9tsg.fsf@codeisgreat.org> (raw)
In-Reply-To: <87h7ei7y0u.fsf@telefonica.net> ("Óscar Fuentes"'s message of "Sat, 18 Sep 2021 16:34:41 +0200")
Ó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.
prev parent reply other threads:[~2021-09-19 2:35 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
2021-09-19 2:35 ` Pankaj Jangid [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ee9l9tsg.fsf@codeisgreat.org \
--to=pankaj@codeisgreat.org \
--cc=help-gnu-emacs@gnu.org \
--cc=ofv@wanadoo.es \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).