Browse Source

python function call now in echo area

master
marc 6 years ago
parent
commit
d52ce481ec
1 changed files with 11 additions and 4 deletions
  1. 15
      config.org

15
config.org

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

Loading…
Cancel
Save