andorsk / d2-mode

emacs major mode for d2 graphs
GNU General Public License v3.0
73 stars 8 forks source link

Change indentation to 2 instead of 4 #50

Closed terlar closed 2 weeks ago

terlar commented 2 months ago

Currently the indentation is using 4 spaces, which is not aligned with d2 fmt (which is using 2 spaces).

Perhaps we should change to align or make it configurable.

MoisMoshev commented 2 months ago

It's true that the width is hardcoded currently. I think normally it is a configuration variable in other modes.

andorsk commented 2 weeks ago

Addressed in #52