X-Git-Url: http://gitweb.michael.orlitzky.com/?p=emacs.d.git;a=blobdiff_plain;f=mode-hooks%2Fpython-mode-hooks.el;h=9c3cf70d77a3f66107769c6a4553fb692a61373e;hp=32cf30fb9617804b9f7e87504d0e3d19e2868e11;hb=baf3054c577cd2652ec4886b134e8e4166b82ffc;hpb=cf5775ba8cc0672bf5f37c6be9e0165f186bcf23 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) )