|
|
@ -433,7 +433,7 @@ The custom function is to run inferiour processes (do I really need that?), see |
|
|
|
|
|
|
|
Anaconda test |
|
|
|
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
begin_src emacs-lisp |
|
|
|
(use-package anaconda-mode |
|
|
|
:ensure t |
|
|
|
:defer t |
|
|
@ -443,9 +443,9 @@ Anaconda test |
|
|
|
:config |
|
|
|
(setq anaconda-eldoc-mode 1) |
|
|
|
) |
|
|
|
#+end_src |
|
|
|
end_src |
|
|
|
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
begin_src emacs-lisp |
|
|
|
(use-package company-anaconda |
|
|
|
:ensure t |
|
|
|
:defer t |
|
|
@ -454,7 +454,7 @@ Anaconda test |
|
|
|
(add-to-list 'company-backends 'company-anaconda)) |
|
|
|
(add-hook 'python-mode-hook 'my/company-anaconda-hook) |
|
|
|
) |
|
|
|
#+end_src |
|
|
|
end_src |
|
|
|
Jedi is a backend for python autocompletion and needs to be installed on the server: |
|
|
|
- pip install jedi |
|
|
|
Code checks need to be installed, too: |
|
|
@ -492,6 +492,7 @@ apt install |
|
|
|
(defun my/post-activate-hook() |
|
|
|
(setq jedi:environment-root pyvenv-virtual-env) |
|
|
|
(setq jedi:environment-virtualenv pyvenv-virtual-env) |
|
|
|
(setq jedi:tooltip-method nil) |
|
|
|
(setq python-shell-virtualenv-root pyvenv-virtual-env) |
|
|
|
;; default traceback, other option M-x jedi:toggle-log-traceback |
|
|
|
;; traceback is in jedi:pop-to-epc-buffer |
|
|
@ -506,6 +507,12 @@ apt install |
|
|
|
) |
|
|
|
#+end_src |
|
|
|
|
|
|
|
just a wild guess to get better popups for jedi |
|
|
|
#+begin_src emacs-lisp |
|
|
|
(use-package popup |
|
|
|
:ensure t |
|
|
|
) |
|
|
|
#+end_src |
|
|
|
I want Emacs to automatically start the proper virtual environment. |
|
|
|
Required is a .python-version file with, content in the first line being /path/to/virtualenv/ |
|
|
|
[[https://github.com/marcwebbie/auto-virtualenv][Github source]] |
|
|
|