From: Michael Orlitzky Date: Wed, 12 Feb 2020 14:16:07 +0000 (-0500) Subject: mode-hooks/python-mode-hooks.el: use "django" style docstrings. X-Git-Url: https://gitweb.michael.orlitzky.com/?p=emacs.d.git;a=commitdiff_plain;h=baf3054c577cd2652ec4886b134e8e4166b82ffc mode-hooks/python-mode-hooks.el: use "django" style docstrings. --- 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) )