1

In emacs is there a function that I can invoke to add a docstring template based on the current major mode?

eg:

If I'm working on javascript, insert a javascript docstring template "here", like:

/** * Docstring * */

If I'm working on python, insert a python docstring template "here", like:

"""Docstring"""

1
  • Looks like a job for auto-insert.
    – q.undertow
    Dec 10, 2022 at 22:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.