From 13213059b3f3b2bfa23476058e97f267996676c9 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 4 Feb 2020 11:42:41 -0500 Subject: [PATCH] Add sphinx-doc.el to autogenerate python doc strings --- emacs/init.org | 6 ++++++ 1 file changed, 6 insertions(+) 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!