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


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:


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


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.