add anaconda, don't use elpy by default

This commit is contained in:
ndwarshuis 2019-04-04 19:12:33 -04:00
parent b2b6a77b37
commit e76b7dd764
1 changed files with 27 additions and 11 deletions

View File

@ -655,18 +655,34 @@ A few caveats when using =R=
#+END_SRC #+END_SRC
*** Python *** Python
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(elpy-enable) (use-package elpy
:ensure t)
;; make python tabs 4 chars (defun nd/init-anaconda-company ()
(add-hook 'python-mode-hook "Set the company backends for anaconda mode."
(lambda () (setq-local company-backends '(company-anaconda)))
(setq indent-tabs-mode nil)
(setq py-indent-tabs-mode nil)
(setq tab-width 4)
(setq python-offset 4)))
(setq python-shell-interpreter "ipython" (use-package python
python-shell-interpreter-args "--simple-prompt") :hook ((python-mode . flycheck-mode)
(python-mode . anaconda-mode)
(python-mode . company-mode)
(python-mode . nd/init-anaconda-company)
(inferior-python-mode . company-mode)
(inferior-python-mode . nd/init-anaconda-company))
:config (setq indent-tabs-mode nil
py-indent-tabs-mode nil
tab-width 4
python-offset 4
python-shell-interpreter "ipython"
python-shell-interpreter-args "-i --simple-prompt"))
(use-package anaconda-mode
:ensure t
:after python)
(use-package company-anaconda
:ensure t
:after (python company anaconda))
#+END_SRC #+END_SRC
*** Ruby *** Ruby
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp