Elpy works in every buffer automaticly, however I wan it to work only with python files. The related section of my init.el is:
(require 'elpy) (elpy-use-ipython) (setq-default indent-tabs-mode nil) (add-to-list 'auto-mode-alist '("\\.py\\'" . elpy-mode))
I clarify my question: Elpy as a minor mode is activated in all of my buffers, and shadows important key-bindings such as C-c C-c for magit.