mirror of
https://github.com/correl/dotfiles.git
synced 2025-04-14 09:09:35 -09:00
[emacs] Add python tools
This commit is contained in:
parent
a96a5b5e5c
commit
5024a42c17
2 changed files with 24 additions and 0 deletions
|
@ -28,6 +28,9 @@
|
|||
(package! org-roam-server)
|
||||
(package! nov)
|
||||
(package! org-ref)
|
||||
(package! python-black)
|
||||
(package! poetry)
|
||||
(package! yapfify)
|
||||
|
||||
(package! org-roam-bibtex
|
||||
:recipe (:host github :repo "org-roam/org-roam-bibtex"))
|
||||
|
|
|
@ -413,6 +413,27 @@ installed:
|
|||
:ensure t
|
||||
:mode "\.pyx$")
|
||||
#+END_SRC
|
||||
**** Formatting (Black)
|
||||
#+begin_src python
|
||||
(use-package! python-black
|
||||
:commands (python-black-buffer
|
||||
python-black-region
|
||||
python-black-statement
|
||||
python-black-on-save-mode))
|
||||
#+end_src
|
||||
**** Formatting (YAPF)
|
||||
#+begin_src python
|
||||
(use-package! yapfify
|
||||
:commands (yapfify-region
|
||||
yapfify-buffer
|
||||
yapfify-region-or-buffer
|
||||
yapf-mode))
|
||||
#+end_src
|
||||
**** Poetry
|
||||
#+begin_src python
|
||||
(use-package! poetry
|
||||
:commands (poetry-tracking-mode))
|
||||
#+end_src
|
||||
*** Ruby
|
||||
#+HEADER: :noweb-ref programming
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
|
Loading…
Add table
Reference in a new issue