Add Python config
This commit is contained in:
parent
bc60d3a17d
commit
efda63da09
19
init.org
19
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 'sql-mode) (my-sql-hydra/body))
|
||||||
((derived-mode-p 'comint-mode) (my-comint-hydra/body))
|
((derived-mode-p 'comint-mode) (my-comint-hydra/body))
|
||||||
((derived-mode-p 'tex-mode) (my-tex-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))))
|
(t (my-general-hydra/body))))
|
||||||
|
|
||||||
(use-package boon
|
(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)"))
|
("B" (my-compile-project "Makefile" t) "compile (prompt)"))
|
||||||
#+END_SRC
|
#+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
|
** marginalia
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CREATED: 2022-01-16T00:28:51+0530
|
: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")))))
|
(locate-user-emacs-file "sql-input-ring")))))
|
||||||
#+END_SRC
|
#+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
|
* The end
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: the-end
|
:CUSTOM_ID: the-end
|
||||||
|
|
Loading…
Reference in New Issue