]> git.donarmstrong.com Git - lib.git/commitdiff
include python-docstring
authorDon Armstrong <don@donarmstrong.com>
Wed, 26 Apr 2023 04:53:22 +0000 (21:53 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 26 Apr 2023 04:53:22 +0000 (21:53 -0700)
emacs_el/configuration/don-configuration.org

index 527a657701ae943704a8a799e86f0ac25ed5a156..160c357db1d5e42e65a142fd10097cfd31061cd7 100644 (file)
@@ -1563,17 +1563,23 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
 #+end_src
 *** Sphinx Documentation
 #+begin_src emacs-lisp :tangle yes
-  (use-package numpydoc
-    :ensure t
-    :after python
-    :bind (:map python-mode-map
-                ("C-c C-n" . numpydoc-generate)))
-  (use-package sphinx-doc
-    :ensure t
-    :config
-    (sphinx-doc-mode t)
-    (setq sphinx-doc-include-types t)
-    :after python)
+(use-package numpydoc
+  :ensure t
+  :after python
+  :bind (:map python-mode-map
+              ("C-c C-n" . numpydoc-generate)))
+(use-package sphinx-doc
+  :ensure t
+  :config
+  (sphinx-doc-mode t)
+  (setq sphinx-doc-include-types t)
+  :after python)
+(use-package python-docstring
+  :ensure t
+  :after python
+  :hook
+  (python-mode . python-docstring-mode)
+  )
 #+end_src
 ** Go language
 #+BEGIN_SRC emacs-lisp