diff options
-rw-r--r-- | emacs.d/config/fcuny-python.el | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/emacs.d/config/fcuny-python.el b/emacs.d/config/fcuny-python.el index 16b4cc1..fd96157 100644 --- a/emacs.d/config/fcuny-python.el +++ b/emacs.d/config/fcuny-python.el @@ -2,11 +2,22 @@ (require 'use-package)) (use-package python + :mode (("\\.py$" . python-mode)) :ensure t - :mode (("\\.py$" . python-mode) - ("^BUILD$" . python-mode) - ("\\.aurora$" . python-mode)) - :custom (python-indent-offset 2) - :hook (eldoc-mode)) + :commands python-mode + :custom (python-indent-offset 2)) + +(use-package anaconda-mode + :ensure t + :after python + :hook ((python-mode . anaconda-mode) + (python-mode . eldoc-mode)) + :custom (anaconda-mode-eldoc-as-single-line t)) + +(use-package company-anaconda + :ensure t + :after anaconda-mode + :init + (add-to-list 'company-backends 'company-anaconda)) (provide 'fcuny-python) |