unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: Thibaut Verron <thibaut.verron@gmail.com>
Cc: , ptlo@centrum.cz, Philip Kaludercic <philipk@posteo.net>,
	help-gnu-emacs@gnu.org
Subject: Re: indentation
Date: Tue, 27 Apr 2021 21:02:18 +0100	[thread overview]
Message-ID: <87tunr1ool.fsf@yandex.com> (raw)
In-Reply-To: <66a6a30a-d5bb-08a8-c3d2-cb615ad900f6@gmail.com> (Thibaut Verron's message of "Tue, 27 Apr 2021 21:20:41 +0200")

>>>>> Thibaut Verron <thibaut.verron@gmail.com> writes:

    > On 4/27/21 9:00 PM, Colin Baxter wrote:
    >> Hi Thibaut,
    >> 
    >>>>>>> Thibaut Verron <thibaut.verron@gmail.com> writes:
    >> > On 4/27/21 6:06 PM, Colin Baxter wrote:
    >> >>>>>>> <ptlo@centrum.cz> writes: >> > Philip, this is it! I
    >> disabled the electric-indent-mode and >> emacs > is again sane. I
    >> didn't find this option before, looking >> in the > customization
    >> groups from the menu.
    >> >>
    >> >> In F-90 I switch off electric-indent-mode via a
    >> .dir-locals.el, >> viz
    >> >>
    >> >> #+begin_src elisp ((nil . ((f90-if-indent . 4) (f90-do-indent
    >> >> . 4) (f90-program-indent . 4) (f90-associate-indent . 4) >>
    >> (f90-critical-indent . 4) (f90-type-indent . 4) (eval add-hook >>
    >> 'f90-mode-hook (lambda () (electric-indent-local-mode -1)))))) >>
    >> #+end_src
    >> 
    >> > Do you use a .dir-locals because you sometimes want to use >
    >> electric-indent-mode in fortran?
    >> 
    >> > If yes, I don't think this will do what you want, as the eval
    >> form > will modify the global value of the hook.
    >> 
    >> > However, if all you want is to never have electric-indent-mode
    >> in > fortran, you can just have the add-hook form in your .emacs.
    >> 
    >> The latter. I use a dir-local and do not put the hook in ~/.emacs
    >> for the simple reason that I have other fortran (different
    >> versions) directories where I want the electric-indent-mode.

    > Oh, I see. Then something like the following should work, without
    > touching the hook for those other directories:

    > ((f90-mode . ((f90-if-indent . 4) (f90-do-indent . 4)
    > (f90-program-indent . 4) (f90-associate-indent . 4)
    > (f90-critical-indent . 4) (f90-type-indent . 4) (eval
    > . (electric-indent-local-mode -1))))

    > Best wishes, Thibaut

Right - that's what I wrote except I don't need no f90-mode since there ain't
no non-fortran files in the directory.



  reply	other threads:[~2021-04-27 20:02 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-27  7:03 indentation ptlo
2021-04-27  7:25 ` indentation Philip Kaludercic
2021-04-27 15:45   ` indentation ptlo
2021-04-27 16:06     ` indentation Colin Baxter
2021-04-27 18:43       ` indentation Thibaut Verron
2021-04-27 19:00         ` indentation Colin Baxter
2021-04-27 19:20           ` indentation Thibaut Verron
2021-04-27 20:02             ` Colin Baxter [this message]
2021-04-28  8:36               ` indentation Thibaut Verron
2021-04-27  9:30 ` indentation Gregory Heytings
2021-04-27  9:47   ` indentation Joost Kremers
2021-04-27 16:55     ` indentation Stefan Monnier
2021-04-27 22:12       ` indentation Gregory Heytings
2021-04-27 15:01 ` [External] : indentation Drew Adams
2021-04-27 17:04   ` Stefan Monnier
2021-04-27 17:54     ` Drew Adams
2021-04-27 20:23       ` Stefan Monnier
2021-04-27 22:28         ` Stefan Monnier
2021-04-27 17:07 ` indentation Stefan Monnier
2021-04-27 18:29   ` indentation ptlo
2021-04-27 20:31     ` indentation Stefan Monnier
2021-04-28  6:32       ` indentation ptlo
2021-04-28  6:42         ` indentation Joost Kremers
2021-04-28 14:14         ` indentation Stefan Monnier
2021-04-29  7:14           ` indentation ptlo
2021-04-29 13:43             ` indentation Stefan Monnier
2021-04-29 14:23               ` indentation Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-29 21:38                 ` on interface and behavior (Was: Re: indentation) Wayne Harris via Users list for the GNU Emacs text editor
2021-04-30  7:53                   ` Eli Zaretskii
2021-05-01 13:30                     ` on interface and behavior Wayne Harris via Users list for the GNU Emacs text editor
2021-04-30  7:05               ` indentation ptlo
2021-04-30  7:58                 ` indentation Philip Kaludercic
2021-04-30  8:54                   ` indentation ptlo
2021-04-30  9:09                     ` indentation Thibaut Verron
2021-04-30  9:18                       ` indentation ptlo
2021-04-30 16:49                 ` [External] : indentation Drew Adams
2021-04-30 19:05                 ` indentation Jean Louis
2021-04-30 19:59                   ` indentation Stefan Monnier
2021-04-30 21:58                 ` indentation Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-29 21:14           ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-04-30 20:17             ` indentation Tassilo Horn
2021-05-01 13:43               ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-05-02  7:20                 ` indentation Tassilo Horn
2021-05-04 21:03                   ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-05-05  1:46                     ` indentation Stefan Monnier via Users list for the GNU Emacs text editor
  -- strict thread matches above, loose matches on Subject: below --
2022-01-26 14:13 Indentation Pierre L. Nageoire
2022-01-26 21:18 ` Indentation Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27  3:30   ` Indentation Pierre L. Nageoire
2022-01-27 10:15     ` Indentation Robert Pluim
2022-01-28  6:31       ` Indentation Pierre L. Nageoire
2006-10-27 16:17 Indentation zombek
2006-10-27 16:46 ` Indentation Markus Triska
2006-10-27 18:01   ` Indentation Malte Spiess
2006-11-01 20:41     ` Indentation Markus Triska
2006-10-27 16:17 Indentation zombek
2006-10-27 16:53 ` Indentation Sam Peterson
2006-10-27 18:58   ` Indentation Sam Peterson
2006-10-28 16:25     ` Indentation jmg3000
2006-10-28 16:28       ` Indentation jmg3000
2006-10-28 16:54       ` Indentation don provan
2006-10-28 23:29         ` Indentation jmg3000
2006-07-03 22:01 Indentation Ronny Mandal
2006-07-03 23:00 ` Indentation Colin S. Miller
     [not found] <mailman.2266.1066871723.21628.help-gnu-emacs@gnu.org>
2003-10-23 13:19 ` indentation Gareth Rees
2003-10-23  1:14 indentation Yen Tran

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=87tunr1ool.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=philipk@posteo.net \
    --cc=ptlo@centrum.cz \
    --cc=thibaut.verron@gmail.com \
    /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).