literate-config

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ef02fe6423bef32b44ede9f925b8f99f62c7b375
parent 13dc1dfb1c63b5cbdba1246bed80ed7b6a0e2d64
Author: Crazazy <crazazy@tilde.cafe>
Date:   Mon, 31 Jan 2022 11:45:20 +0100

fix noweb stuff for emacs python config

Diffstat:
Memacs.org | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/emacs.org b/emacs.org @@ -251,12 +251,11 @@ Also, if you just stumbled accross this at random, there is an easy tangle butto use-package, so I had to find a weird work-arounds with add-hook and all that stuff #+begin_src elisp :tangle emacsconfig/python.el :padline no :noweb no-export (add-hook 'python-mode-hook (lambda () - <<el-python-config>> - <<el-python-config-2>>)) + <<el-python-config>>)) #+end_src First we set an interpreter with nix, it comes with all the python autocompletion tools we need - #+begin_src elisp :tangle el-python-config + #+begin_src elisp :noweb-ref el-python-config (setq python-shell-interpreter (nix-executable-find (nix-env-from-packages "python" "(python3.withPackages (p: with p; [pygame virtualenvwrapper pip sqlite jedi flake8 yapf autopep8 black]))") @@ -264,7 +263,7 @@ Also, if you just stumbled accross this at random, there is an easy tangle butto #+end_src Then we introduce elpy with so that it can use all the tools immidiately without downloading them - #+begin_src elisp :tangle el-python-config-2 + #+begin_src elisp :noweb-ref el-python-config (use-package elpy :config (elpy-enable)