]> gitweb.michael.orlitzky.com - emacs.d.git/blob - mode-hooks/python-mode-hooks.el
mode-hooks/python-mode-hooks.el: don't mangle docstrings please.
[emacs.d.git] / mode-hooks / python-mode-hooks.el
1 (defun pym-hook()
2 ;; Turn off the live documentation that tries to process the whole
3 ;; file in a temporary location and usually fails, crapping all over
4 ;; my minibuffer in the process.
5 (eldoc-mode 0)
6
7 ;; Don't format python docstrings according to any particular convention.
8 ;; The fill-paragraph function should word-wrap the docstring, but should
9 ;; not (for example) delete the line break after the triple quotes.
10 (setq python-fill-docstring-style nil)
11 )
12
13
14 (add-hook 'python-mode-hook (function pym-hook))