From ef02fe6423bef32b44ede9f925b8f99f62c7b375 Mon Sep 17 00:00:00 2001 From: Crazazy Date: Mon, 31 Jan 2022 11:45:20 +0100 Subject: fix noweb stuff for emacs python config --- emacs.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/emacs.org b/emacs.org index a54dcbb..555c7b0 100644 --- 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 () - <> - <>)) + <>)) #+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) -- cgit 1.4.1-2-gfad0