|
@ -771,24 +771,25 @@ Manage projects and jump quickly between its files |
|
|
https://github.com/emacs-lsp/lsp-mode#install-language-server |
|
|
https://github.com/emacs-lsp/lsp-mode#install-language-server |
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
#+BEGIN_SRC emacs-lisp |
|
|
(if (string-equal system-type "gnu/linux") |
|
|
|
|
|
(use-package pyvenv |
|
|
|
|
|
:ensure t |
|
|
|
|
|
:config |
|
|
|
|
|
(setenv "WORKON_HOME" (expand-file-name "~/Archiv/Programmierprojekte/Python/virtualenv/")) |
|
|
|
|
|
(add-hook 'pyvenv-post-activate-hooks #'my/postactivatehook)) |
|
|
|
|
|
(defun my/postactivatehook () |
|
|
|
|
|
(setq lsp-python-ms-extra-paths pyvenv-virtual-env)) |
|
|
|
|
|
|
|
|
|
|
|
(use-package virtualenvwrapper |
|
|
|
|
|
:ensure t |
|
|
|
|
|
:hook (venv-postmkvirtualenv . (lambda() (shell-command "pip3 install importmagic epc"))) |
|
|
|
|
|
:config |
|
|
|
|
|
(setq venv-location (expand-file-name "~/Archiv/Programmierprojekte/Python/virtualenv/"))) |
|
|
|
|
|
|
|
|
|
|
|
(use-package lsp-python-ms |
|
|
|
|
|
:ensure t |
|
|
|
|
|
:after lsp-mode python)) |
|
|
|
|
|
|
|
|
(if (string-equal system-type "gnu/linux") |
|
|
|
|
|
(defun my/postactivatehook () |
|
|
|
|
|
(setq lsp-python-ms-extra-paths pyvenv-virtual-env)) |
|
|
|
|
|
|
|
|
|
|
|
(use-package pyvenv |
|
|
|
|
|
:ensure t |
|
|
|
|
|
:config |
|
|
|
|
|
(setenv "WORKON_HOME" (expand-file-name "~/Archiv/Programmierprojekte/Python/virtualenv/")) |
|
|
|
|
|
(add-hook 'pyvenv-post-activate-hooks 'my/postactivatehook)) |
|
|
|
|
|
|
|
|
|
|
|
(use-package virtualenvwrapper |
|
|
|
|
|
:ensure t |
|
|
|
|
|
:hook (venv-postmkvirtualenv . (lambda() (shell-command "pip3 install importmagic epc"))) |
|
|
|
|
|
:config |
|
|
|
|
|
(setq venv-location (expand-file-name "~/Archiv/Programmierprojekte/Python/virtualenv/"))) |
|
|
|
|
|
|
|
|
|
|
|
(use-package lsp-python-ms |
|
|
|
|
|
:ensure t |
|
|
|
|
|
:after lsp-mode python)) |
|
|
; :custom (lsp-python-executable-cmd "python3")) |
|
|
; :custom (lsp-python-executable-cmd "python3")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|