Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [doc-strings]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12 votes
4 answers
10k views

Library for automatically inserting python docstring in Google style

I'm looking for an elisp package that automatically inserts Python docstring for a method. I found a package, which is very close to my purpose. But it's in reStructured text, not in Google style. ...
sy2's user avatar
  • 123
12 votes
2 answers
960 views

Is it possible to attach generated doc string to a lambda?

Emacs docs say that when doc string is put inside of lambda or defun it's “stored directly in the function object”. However, we can change docs of named functions like this: (put 'my-function-name '...
Mark Karpov's user avatar
  • 4,963
5 votes
2 answers
254 views

Change doc string summary of a function on the fly

Is it possible to change the first line of a docstring of a function, without editing the source code of this function? And if, how can I do this? Background: some packages come with a pretty useless ...
jue's user avatar
  • 4,576
3 votes
2 answers
2k views

How can I disable indentation rules within docstrings in python-mode?

When writing within docstrings in python-mode, I'm only able to tab/indent deeper than the leading edge of the string. For example: def foo(): """ | | << the only places I can "tab" to. ...
Phill Oldham's user avatar