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:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.