dgutov / mmm-mode

New official home for mmm-mode, fixed for Emacs >= 23
http://mmm-mode.sourceforge.net/
GNU General Public License v2.0
333 stars 31 forks source link

auto-fill mode #117

Open garyo opened 4 years ago

garyo commented 4 years ago

I have my text-mode-hook turn on auto-fill. In a .vue file, it has three parts: HTML (derived from text-mode), typescript, and css. I've noticed that my text-mode-hook ends up turning on auto-fill for the whole .vue file.

Once I figured this out, I just turned off auto-fill for text mode because I don't really care about it that much, so this is not urgent for me, but thought I'd report it. I think the correct behavior would be to enable and disable auto-fill depending on the region.

dgutov commented 4 years ago

One way to try to deal with this will be to add auto-fill-function (and probably other fill-related variables that do-auto-fill looks up) to mmm-save-local-variables and then have mmm-mode change them on per-region basis.