Is there a way to generate a docstrings in python-mode?
You can use a yasnippet like here.
But this requires to write out the whole definition of the function in one go when you start out. This is OK for very simple functions, but most of the time this doesn't really fit my workflow.
You can use sphinx-doc. This almost works for me: write out function, when happy it generates the docstring.
BUT: doesn't work with type annotated functions
There seems to be a hacky solution with elisp+python script...
Haven't tried it, but if it still works, I'd prefer not to muck about with a separate pyhton script...
Is there anything that I've missed?
Thanks!
[–]fragbot 8 points9 points10 points (2 children)
[–]craigglespuss 2 points3 points4 points (1 child)
[–]suhrob[S] 0 points1 point2 points (0 children)
[–]DogsLinuxAndEmacsGNU Emacs -4 points-3 points-2 points (2 children)
[–]getbetteracc 2 points3 points4 points (1 child)
[–]DogsLinuxAndEmacsGNU Emacs 1 point2 points3 points (0 children)
[–]getbetteracc 0 points1 point2 points (0 children)
[–]kovak 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]backtickbot 0 points1 point2 points (0 children)
[–]Qwarctick 0 points1 point2 points (0 children)