I often edit Python code in my Emacs and have it set up to display Python files in Python mode. I often find myself formatting dosctrings as ReStructured Text and I was thinking that it would be great if I could have Emacs show these docstrings as in ReST mode. Is this possible somehow?
You can try this minor mode
with that conf:
(add-to-list 'load-path "/path/to/python-docstring-mode-master") (require 'python-docstring) (add-hook 'python-mode-hook (lambda () (python-docstring-mode t)))