|
|
@ -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 |
|
|
|