[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: electric-pair-mode
From: |
Tassilo Horn |
Subject: |
Re: electric-pair-mode |
Date: |
Fri, 22 Nov 2013 20:13:35 +0100 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
Alexander Baier <address@hidden> writes:
>>> For example, in all kinds of lisp modes I'm using paredit which
>>> provides both features, too, in a slightly different form. So there
>>> I wouldn't want to activate these modes (although it seems having them
>>> activated doesn't do any harm).
>>
>> Looks like there's no problem, then.
>
> In my experience electric-indent-mode screws up indentation in
> python-mode buffers:
That's the purpose of:
,----[ C-h v electric-indent-inhibit RET ]
| electric-indent-inhibit is a variable defined in `electric.el'.
| Its value is nil
|
| Automatically becomes buffer-local when set.
|
| Documentation:
| If non-nil, reindentation is not appropriate for this buffer.
| This should be set by major modes such as `python-mode' since
| Python does not lend itself to fully automatic indentation.
`----
In the current trunk, `python-mode' sets that to t.
Bye,
Tassilo