bling / dotemacs

emacs configuration for vim users
MIT License
265 stars 40 forks source link

About code completion #12

Closed bebound closed 9 years ago

bebound commented 9 years ago

I tried to use emacs to edit python file, the code competion is strange, it always add wrong indent. For example:

if 1:
    pass
if 1

Once I input :, it will automatically add a superfluous indent to line 3. Which package cause this?

bling commented 9 years ago

hmmm, it looks emacs behavior. it's reproducible with emacs -Q.

bebound commented 9 years ago

How does emacs use such strange indent rules... :(  And which package cause the auto highlight/search current word on the scratch buffer?

— 通过 Mailbox 发送

On Mon, Nov 3, 2014 at 11:24 PM, Bailey Ling notifications@github.com wrote:

hmmm, it looks emacs behavior. it's reproducible with emacs -Q.

Reply to this email directly or view it on GitHub: https://github.com/bling/dotemacs/issues/12#issuecomment-61493371

bebound commented 9 years ago

This results from the electric-indent-mode http://emacs.stackexchange.com/questions/3322/python-auto-indent-problem