Add sphinx-doc.el to autogenerate python doc strings

This commit is contained in:
Jeremy Dormitzer 2020-02-04 11:42:41 -05:00
parent a77a4549a1
commit 13213059b3

View File

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