]> gitweb.michael.orlitzky.com - emacs.d.git/blob - mode-hooks/python-mode-hooks.el
mode-hooks.el: add dns-mode hooks
[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 ;; Use "django" style for python docstrings. This ensures that the
8 ;; leading triple quotes remain on their own line when you paragraph-
9 ;; fill the first paragraph of the docstring.
10 (setq python-fill-docstring-style 'django)
11 )
12
13
14 (add-hook 'python-mode-hook (function pym-hook))