an-sh / flow-minor-mode

Emacs minor mode for editing flowtype files.
BSD 3-Clause "New" or "Revised" License
47 stars 16 forks source link

Only enable flow-minor-mode if a .flowconfig is present #5

Closed antifuchs closed 7 years ago

antifuchs commented 7 years ago

As suggested by @aaronjensen in #2, enabling flow-minor-mode without a .flowconfig file is not going to be useful. This change makes flow-enable-automatically search upwards for that file before the mode it in a buffer.