From d52ce481ec017d5db0b8c16bea64c6f4e3b89b99 Mon Sep 17 00:00:00 2001 From: marc Date: Fri, 9 Mar 2018 10:37:31 +0100 Subject: [PATCH] python function call now in echo area --- config.org | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/config.org b/config.org index 25fdc5b..e64800a 100644 --- a/config.org +++ b/config.org @@ -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]]