Have anybody added logic to Emacs' `comment-dwim` that automagically inserts a (Ddoc-style) multi-line comment like

/** ...
 */
void foo
{
}

if the cursor is currently in front of a (function) definition (or declaration)?

I realize that the challenge here is context detection; perhaps `beginning-of-defun()` could be used?

Reply via email to