Closed joyguar closed 4 months ago
Thanks for raising this @dstrr. I don't think there's any specific indentation policies set yet, so I think you're right, this can be a feature request that can be added in.
I'm willing to take on that, if I get any idea of how indentation works. Is there a simple mode that does it, which I can look at for inspiration? I'm reasonably comfortable in emacs lisp.
Hey Mois. Sorry for the delay in a response here. https://github.com/abrochard/mermaid-mode/blob/master/mermaid-mode.el#L133 is a good starting point and I would certainly welcome the contribution!
Thank you and I look forward to the PR!
Ooh that's nice. Moving point and then searching backwards, I hadn't thought of that. Let me see when I'll fit it in the schedule.
Hello,
I've just installed and tried making use of
d2-mode
but indentation isn't working. If I type out the exampleindentation behaves the same as in fundamental mode. I have to manually tab the
shape: class
line, and then I have to manually de-indent the curly brace. I've installed both from melpa and tried a git clone, but I get the same behavior.Are there limits on the indentation?