emacs-devel
[Top][All Lists]
Advanced

[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 22:09:24 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Alexander Baier <address@hidden> writes:

Hi Alex,

>>> 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.
>
> Thank you, I did not know about this. I am still running 24.3, which
> does not offer this. I will add this to my config as soon as 24.4 is
> released.

You don't need to configure anything.  With 24.4, it'll work correct out
of the box.

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]