From efda63da091c53aa24f97dfcc9aea4e2d1543e40 Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Tue, 24 May 2022 23:04:23 +0530 Subject: [PATCH] Add Python config --- init.org | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/init.org b/init.org index 58da471..550786b 100644 --- a/init.org +++ b/init.org @@ -1176,6 +1176,7 @@ Don't try to check if there are files with a certain extension...it will lead to ((derived-mode-p 'sql-mode) (my-sql-hydra/body)) ((derived-mode-p 'comint-mode) (my-comint-hydra/body)) ((derived-mode-p 'tex-mode) (my-tex-hydra/body)) + ((derived-mode-p 'python-mode) (my-python-hydra/body)) (t (my-general-hydra/body)))) (use-package boon @@ -1245,6 +1246,15 @@ Don't try to check if there are files with a certain extension...it will lead to ("B" (my-compile-project "Makefile" t) "compile (prompt)")) #+END_SRC +*** Python +:PROPERTIES: +:CUSTOM_ID: python +:END: +#+BEGIN_SRC emacs-lisp +(my-defhydra my-python-hydra (:color blue) + ("r" run-python "REPL")) +#+END_SRC + ** marginalia :PROPERTIES: :CREATED: 2022-01-16T00:28:51+0530 @@ -5705,6 +5715,15 @@ nicked from wasamasa's init - https://github.com/wasamasa/dotemacs/blob/934d0b37 (locate-user-emacs-file "sql-input-ring"))))) #+END_SRC +** Python +:PROPERTIES: +:CUSTOM_ID: python +:END: +#+BEGIN_SRC emacs-lisp +(use-package python + :config (setq python-shell-interpreter "python3")) +#+END_SRC + * The end :PROPERTIES: :CUSTOM_ID: the-end