summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-07-03 08:44:18 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-07-03 08:44:18 -0700
commit20e7967e2bce2df9a5d91d3a15c1f3413ab50d78 (patch)
tree863a984eb913539690c64d749f851509e2d1808b
parent[emacs] A number of fixes for go-mode (diff)
downloademacs.d-20e7967e2bce2df9a5d91d3a15c1f3413ab50d78.tar.gz
[emacs] Configure correctly python.
Add anacondo, load eldoc correctly, etc.
-rw-r--r--emacs.d/config/fcuny-python.el21
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)