Search code examples
emacsautocompleteindentationpython-mode

Disable completion pop-up in python-mode shadowing indentation


I updated recently my version of python-mode.el. Since then pressing at end of lines tries completion instead of indentation and pops up a buffer of suggestion. I would rather have only indentation. I use something else for completion. How can this be achieved?

By the way, auto indentation grew /less/ smart with the update. What possibly have I broken?


Solution

  • You didn't tell which python-mode. Also assume it's about TAB-key.

    WRT python-mode.el comment out the present key-setting and write the desired one.

    Like that:

    ;; (define-key map (kbd "TAB") 'py-indent-or-complete)
    (define-key map (kbd "TAB") 'py-indent-line)