diff --git a/emacs/init.org b/emacs/init.org index 722ee66..966362d 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2418,6 +2418,12 @@ Run black on the current buffer: (general-def 'normal python-mode-map "C-M-\\" #'format-all-buffer) #+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 Python but Lispy!