I am currently trying to make Elpy
into my ideal Python IDE, and besides inline images in the console, I am mostly there (I don't need much).
C-c C-d
(M-x elpy-doc
) brings up documentation for the object at point when editing a .py
file, and after some troubleshooting I have gotten this to work, mostly, for imported modules as well as built-in functions.
However, it turns out that scipy
documentation is written in ReST
and requires rst-mode
for syntax highlighting.
I want to automatically enable rst-mode
whenever I open SciPy documentation via elpy-doc
, or generally ReST documentation. However, I cannot automate this because the buffer documentation is displayed in is not connected to a file. It does not seem possible to set any options related to elpy-doc
to achieve such a thing.
Does this make sense, and if so, is there a way to accomplish it?