[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 14:20:08 +0100 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> No annoyance so far but I'm wondering why both `electric-pair-mode' and
>> `electric-indent-mode' are *global* minor modes.
>
> Because in my experience, most people who like those features, like
> them everywhere.
>
>> 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:
----------------------------------------------------------------
def foo(x):
print (x)
def bar ():|
----------------------------------------------------------------
Put this content into a buffer and turn on python-mode and
electric-indent-mode. Put the cursor where the "|" is and press RET.
On my machine the "def bar():" gets reindented so it lines up with the
preceding "print(x):" line. This is usually not what you want.
>
> Stefan
Regards,
Alex
- Re: electric-pair-mode, (continued)
- Re: electric-pair-mode, Xue Fuqiao, 2013/11/16
- Re: electric-pair-mode, Jorgen Schaefer, 2013/11/17
- electric-indent-mode (was: electric-pair-mode), Stefan Monnier, 2013/11/17
- electric-indent-mode (was Re: electric-pair-mode), Stephen Berman, 2013/11/19
- Re: electric-pair-mode, Tassilo Horn, 2013/11/21
- Re: electric-pair-mode, Tassilo Horn, 2013/11/29
- Re: electric-pair-mode, Stefan Monnier, 2013/11/29
- Re: electric-pair-mode, Tassilo Horn, 2013/11/29