From a43411c8ec747d0d2d958480a97ecd68e9f33d6f Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Tue, 3 Dec 2019 12:40:25 +0100 Subject: [PATCH] excluded some linux-only stuff, e.g. python --- init.org | 65 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/init.org b/init.org index 232965e..c253722 100644 --- a/init.org +++ b/init.org @@ -472,24 +472,24 @@ TODO Unterverzeichnisse wurden noch nicht getestet https://github.com/emacs-lsp/lsp-mode#install-language-server #+BEGIN_SRC emacs-lisp - (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") + (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)) ; :custom (lsp-python-executable-cmd "python3")) @@ -509,20 +509,21 @@ deactivate #+END_SRC #+BEGIN_SRC emacs-lisp - (use-package beancount - :load-path "user-local/elisp" - :ensure t - :defer t - :mode - ("\\.beancount$" . beancount-mode) - :init - (add-hook 'beancount-mode-hook 'company/beancount-mode-hook) -; (add-hook 'beancount-mode-hook (pyvenv-activate "/opt/beancount")) - ; (setenv "PATH" - ; (concat "/opt/beancount/bin:" - ; (getenv "PATH"))) - :config - (setq beancount-filename-main "/home/marc/Archiv/Finanzen/Transaktionen/transactions.beancount")) + (if (string-equal system-type "gnu/linux") + (use-package beancount + :load-path "user-local/elisp" + :ensure t + :defer t + :mode + ("\\.beancount$" . beancount-mode) + :init + (add-hook 'beancount-mode-hook 'company/beancount-mode-hook) + ; (add-hook 'beancount-mode-hook (pyvenv-activate "/opt/beancount")) + ; (setenv "PATH" + ; (concat "/opt/beancount/bin:" + ; (getenv "PATH"))) + :config + (setq beancount-filename-main "/home/marc/Archiv/Finanzen/Transaktionen/transactions.beancount"))) #+END_SRC To support org-babel, check if it can find the symlink to ob-beancount.el