Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Change API from a set of macros to a framework #1

Description

@dominikh

Instead of providing a set of macros that major modes use to define functions, we should provide a basic framework that major modes register with.

  • Instead of one before-save function per mode, there should be a single function in langfmt, that calls the correct formatting function based on the active major mode
  • Instead of one *-show-errors variable per major mode, there should be a single variable for langfmt
  • Major modes should provide a default format-command, which the user should be able to customize (e.g. to use goimports instead of gofmt). Customization variables will live in per-major subgroups, and the subgroups will live in a langfmt group.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions