[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indentation
From: |
Tassilo Horn |
Subject: |
Re: indentation |
Date: |
Sun, 02 May 2021 09:20:14 +0200 |
User-agent: |
mu4e 1.5.12; emacs 28.0.50 |
Wayne Harris via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:
Hey Wayne,
>> FWIW, I'd write your example as
>>
>> \noindent {\em Notation.} As we often write polynomials in finite rings of
>> characterisc 2, let's define
>> \[
>> \poly(x) = ...
>> \]
>> in the same way that it was used in the introduction.
>>
>> which is indented according to how AUCTeX would do it or the builtin
>> `latex-mode' if `latex-indent-within-escaped-parens' is t.
>
> Thank you. I had no idea what was going on there. Clearly the root
> cause of the problem is not understanding what is going on. That's
> life:
Absolutely!
> I took a while to begin using paredit-mode precisely for not being
> able to minimially live with it, but it's been really worth it to try.
> (I use it constantly now.) Maybe the same will happen with
> electric-indent-mode.
Possibly. If you want to, you might also want to try the
`aggressive-indent' package (from MELPA; its minor-mode is
`aggressive-indent-mode') which is essentially `electric-indent-mode' on
steroids, i.e., it indents the current function according to the mode's
rules on every edit which makes it completely impossible to fight
against the mode's indentation rules. (Of course, aggressive-indent is
mostly suited with programming modes; it works very well with lisp.)
Bye,
Tassilo