From baf3054c577cd2652ec4886b134e8e4166b82ffc Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 12 Feb 2020 09:16:07 -0500 Subject: [PATCH] mode-hooks/python-mode-hooks.el: use "django" style docstrings. --- mode-hooks/python-mode-hooks.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mode-hooks/python-mode-hooks.el b/mode-hooks/python-mode-hooks.el index 32cf30f..9c3cf70 100644 --- a/mode-hooks/python-mode-hooks.el +++ b/mode-hooks/python-mode-hooks.el @@ -4,10 +4,10 @@ ;; my minibuffer in the process. (eldoc-mode 0) - ;; Don't format python docstrings according to any particular convention. - ;; The fill-paragraph function should word-wrap the docstring, but should - ;; not (for example) delete the line break after the triple quotes. - (setq python-fill-docstring-style nil) + ;; Use "django" style for python docstrings. This ensures that the + ;; leading triple quotes remain on their own line when you paragraph- + ;; fill the first paragraph of the docstring. + (setq python-fill-docstring-style 'django) ) -- 2.43.2