diff options
author | Crazazy | 2022-01-31 11:45:20 +0100 |
---|---|---|
committer | Crazazy | 2022-02-10 16:13:34 +0100 |
commit | ef02fe6423bef32b44ede9f925b8f99f62c7b375 (patch) | |
tree | a06e3671932d811d94977c30e7b479aeb6583428 | |
parent | 13dc1dfb1c63b5cbdba1246bed80ed7b6a0e2d64 (diff) |
fix noweb stuff for emacs python config
-rw-r--r-- | emacs.org | 7 |
1 files 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 () - <<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) |