From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: Re: How to disable auto-indent for a specific mode? Date: Sun, 19 Sep 2021 08:05:27 +0530 Message-ID: References: <87h7ei7y0u.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14431"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 19 04:36:13 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRmgd-0003Uk-OE for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 04:36:11 +0200 Original-Received: from localhost ([::1]:33498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRmgc-0000es-3V for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 18 Sep 2021 22:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRmg3-0000ek-CN for help-gnu-emacs@gnu.org; Sat, 18 Sep 2021 22:35:35 -0400 Original-Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:42878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRmg1-00054D-H5 for help-gnu-emacs@gnu.org; Sat, 18 Sep 2021 22:35:35 -0400 Original-Received: by mail-pg1-x530.google.com with SMTP id q68so13783254pga.9 for ; Sat, 18 Sep 2021 19:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=KBfACntrMUt1ZqqmT0AdLzC6/Od5tv7/lTcT4bJNe6c=; b=gSdPKLkh/TtV4vnr7Q5dl9tfxr3A8W6ItET2sov/cJDr3rsS9X2Ye2pZ2C+H9lM5fY u/3CtZfXpcxWOxc38kJwvbQWAa2yINGfA8VScTr+sHkw/STleLHmn76L22HMDos3BPUS Okn0XPrrM+azmcklq5csReR/QE1GCEfUTjyx64VBnmEIaReSjHict58HiEvuIpoHQlj4 Lzb0mMhPNMK5oX361j0IIZyzxxNGYxiUdSLgB6In2/6UKQIMpubX/tNk4EZF0k5XlXNb XO9kNkQooi3rHzd0hAC5kowSvpWriFZWOvUve7HgVpS1IAJnwrMo4IMkWzzUdSn/aazi tniQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=KBfACntrMUt1ZqqmT0AdLzC6/Od5tv7/lTcT4bJNe6c=; b=uSfbJwW3zhqby2iHrKR0mftyFknoqU4rQmuJG7BOArY+006l1R4zrEYXoQrvdk9X6e xOvhDgE7kv9zih/6EJQQzGLOm28L3IJ5mxQFvRt3G24hMQfze25lWCQjwTVsFbTYGpc8 42SRoB1IALSmd6fKGho4fZSMI3GRs6ngieB+L9NECADzzibRm8ZzrRzkNFKJwymgvnum W7qdoCmGgYRR4Wn5JR7gAZh0CSTVT8jxcOrOwmeLqTr7G4tKFe8Pt8rvCwh86u1cMaPs g0i8/pRWDc5/1QLb2GrM0ZY8KAsjPF1q5nqXkF1IEUTvIOknJ21Y6mYephUrRbSmzqiI 4EzA== X-Gm-Message-State: AOAM531Oj0bk7cIyF1/iq52BAu6FDYMjFUkP5gkQBpq64wBS8VNHgQqU u3eEKoyPfcmriCOlwzvMzYVp990FT54Grw== X-Google-Smtp-Source: ABdhPJxQ2BBFMTzn3zOTgxtvu5j9IDdSjK7iwqtifOPgMUsZSSox7K2WzbFVd740Pk9AH/VgrBmjYw== X-Received: by 2002:a63:5c63:: with SMTP id n35mr17288627pgm.311.1632018931174; Sat, 18 Sep 2021 19:35:31 -0700 (PDT) Original-Received: from mb02.local ([2405:201:5c06:70a7:cc04:5fd0:182e:bd71]) by smtp.gmail.com with ESMTPSA id y3sm11159643pge.44.2021.09.18.19.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Sep 2021 19:35:30 -0700 (PDT) Mail-Followup-To: =?utf-8?Q?=C3=93scar?= Fuentes , help-gnu-emacs@gnu.org In-Reply-To: <87h7ei7y0u.fsf@telefonica.net> (=?utf-8?Q?=22=C3=93scar?= Fuentes"'s message of "Sat, 18 Sep 2021 16:34:41 +0200") Received-SPF: none client-ip=2607:f8b0:4864:20::530; envelope-from=pankaj@codeisgreat.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133095 Archived-At: =C3=93scar Fuentes 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=E2=80= =99ll do. Thanks for pointing to the right direction. Currently, TAB is following weird indentation rules. That I must fix.