Re: Automatic insertion of D-style multiline-comments in Emacs

2017-11-12 Thread Basile B. via Digitalmars-d-learn
On Sunday, 12 November 2017 at 12:52:48 UTC, Nordlöw wrote: 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

Re: Automatic insertion of D-style multiline-comments in Emacs

2017-11-12 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 12 November 2017 at 12:52:48 UTC, Nordlöw wrote: Have anybody added logic to Emacs' `comment-dwim` that automagically inserts a (Ddoc-style) multi-line comment like Posted also here: https://stackoverflow.com/questions/47249052/automatic-insertion-of-multiline-declaration-comments

Automatic insertion of D-style multiline-comments in Emacs

2017-11-12 Thread Nordlöw via Digitalmars-d-learn
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 `begi