Skip to content

Make it easy to add new macro words #82

Description

@cgay

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions