mohkale / flymake-collection

Collection of checkers for flymake
MIT License
68 stars 13 forks source link

Add user option to pass file extension manually to flycheck-collection-vale #42

Open krisbalintona opened 1 month ago

krisbalintona commented 1 month ago

Currently, flymake-collection-vale either passes the extension of the current buffer to vale (as ".ext=EXTENSION") or doesn't pass an extension at all. It'd be nice if the user were given an option to map major mode (or even predicate) to the extension that's passed. This is useful since some files do not have an extension but I would like to treat them as e.g. an org file (so my vale configuration for org files applies to it). A notable case: drafting emails . Those files do not have an extension.

mohkale commented 1 month ago

Seems sensible. PRs welcome :-).