]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
mode-hooks/python-mode-hooks.el: don't mangle docstrings please.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 15 Nov 2019 17:32:10 +0000 (12:32 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 15 Nov 2019 17:32:10 +0000 (12:32 -0500)
mode-hooks/python-mode-hooks.el

index 91b73f47c81aff542e5196b43049dddafeaf28a3..32cf30fb9617804b9f7e87504d0e3d19e2868e11 100644 (file)
@@ -3,6 +3,11 @@
   ;; file in a temporary location and usually fails, crapping all over
   ;; 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)
 )