Automatic insertion of D-style multiline-comments in Emacs

Nordlöw per.nordlow at gmail.com
Sun Nov 12 12:52:48 UTC 2017


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?


More information about the Digitalmars-d-learn mailing list