Add Python config

This commit is contained in:
contrapunctus 2022-05-24 23:04:23 +05:30
parent bc60d3a17d
commit efda63da09
1 changed files with 19 additions and 0 deletions

View File

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