From 7e1a94f7b2044d1b9e65d662d64ce28ca7e7d964 Mon Sep 17 00:00:00 2001 From: Marc Date: Sat, 14 Dec 2019 18:59:21 +0000 Subject: [PATCH] fixed compiler error for custom function --- init.org | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/init.org b/init.org index 35d0265..2662525 100644 --- a/init.org +++ b/init.org @@ -771,24 +771,25 @@ Manage projects and jump quickly between its files https://github.com/emacs-lsp/lsp-mode#install-language-server #+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"))