Add sphinx-doc.el to autogenerate python doc strings
This commit is contained in:
parent
a77a4549a1
commit
13213059b3
@ -2418,6 +2418,12 @@ Run black on the current buffer:
|
|||||||
(general-def 'normal python-mode-map "C-M-\\" #'format-all-buffer)
|
(general-def 'normal python-mode-map "C-M-\\" #'format-all-buffer)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
[[https://github.com/naiquevin/sphinx-doc.el][sphinx-doc.el]] automatically generates doc strings for Python functions (and updates existing ones!):
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package sphinx-doc
|
||||||
|
:hook ((python-mode . sphinx-doc-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Hy
|
* Hy
|
||||||
Python but Lispy!
|
Python but Lispy!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user