A new emacs d-mode from scratch
Thomas de Grivel
billitch at epita.fr
Mon May 28 22:44:54 PDT 2007
Bill Baxter wrote:
> I changed the wiki (which is actually the authoritative version).
Hi, I patched some strange indentation of class constructor brackets
when they are on their own line :
I like to type
>class Foo
>{
> this ()
> {
> ...
> }
>
> void bar ()
> {
> ...
> }
>}
But the wiki's d-mode would give me this
>class Foo
>{
> this ()
> {
> ...
> }
>
> void bar ()
> {
> ...
> }
>}
Modifying d-mode.el by adding "this" to *c-modifier-kwds* at line 146
fixed it, and even if it does not exactly match the comment, it does not
seem to break anything else. I am no D expert yet but I figured I would
let you know, and I'm too shy to modify the wiki without prior asking =)
--
Thomas de Grivel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: this-bracket-indent.patch
Type: text/x-patch
Size: 484 bytes
Desc: not available
Url : http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20070529/c1858ec0/attachment.bin
More information about the Digitalmars-d-announce
mailing list