I've always been amazed how good a job dylan-mode does overall, but it's quite hard to add new words that affect indentation in the way I want. For example, I'm currently adding a let-if macro that should indent just like if. It would be great if I could just M-x customize-mode dylan-mode and add let-if to the appropriate list.
I suspect this will require serious refactoring of the code because (for example) there is duplication of dylan statement words and others. Personally I find the code hard to follow and was unable to make let-if indent like if by adding it in the "obvious" places.
I think the most common case (for obvious reasons) is new macros.
Perhaps to state the obvious, it also doesn't make sense that every new macro that needs special indentation should require a PR to this repository. Better if we can have local customizations and library authors who export macros make suggestions in their documentation about what to add.
I've always been amazed how good a job
dylan-modedoes overall, but it's quite hard to add new words that affect indentation in the way I want. For example, I'm currently adding alet-ifmacro that should indent just likeif. It would be great if I could justM-x customize-mode dylan-modeand addlet-ifto the appropriate list.I suspect this will require serious refactoring of the code because (for example) there is duplication of dylan statement words and others. Personally I find the code hard to follow and was unable to make
let-ifindent likeifby adding it in the "obvious" places.I think the most common case (for obvious reasons) is new macros.
Perhaps to state the obvious, it also doesn't make sense that every new macro that needs special indentation should require a PR to this repository. Better if we can have local customizations and library authors who export macros make suggestions in their documentation about what to add.