[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: electric-pair-mode
From: |
Alexander Baier |
Subject: |
Re: electric-pair-mode |
Date: |
Fri, 22 Nov 2013 21:35:17 +0100 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) |
Tassilo Horn <address@hidden> writes:
> 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
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.
Regards,
Alex