Open am opened 5 years ago
I'm using flymake and linting in indirect buffers is working fine for me.
Both flycheck and flymake save buffers to temporary files (or pipe the buffer contents) and pass them to linters meaning you don't need to have them stored on a physical disk in a lot of cases. Some checkers may expect a file-name or identifier that may not work properly in indirect buffers.
I'm trying to find a way out to solve a simple problem, and that is, enable Flycheck for
vue-files
(or any file usingmmm-mode
).Since
mmm-mode
is not supported by Flycheck, and adding this feature doesn't look easy to me, I thought that a simple way to get this done was to useedit-indirect
and once in the buffer Flycheck would work. Partially it does, but if the configuration for Flycheck points to binaries local to the project it breaks, since the buffer thatedit-indirect
uses is not saved into disk (AFAIK).My proposal is to add an option that when set could save the buffer temporary in the same path of the original path, like:
On abort or commit this file would be discarded. What are your thoughts about this?
Thank you