m00natic / vlfi

View Large Files in Emacs
455 stars 25 forks source link

Is there a way to change major-mode when using vlf ? #47

Open failable opened 4 years ago

failable commented 4 years ago

Although the minor mode vlf-mode is turned on, major-mode (for example json-mode) font lock is sometime still quite an issue for single batch. Is there a way to change major-mode when vlf-mode is turned on?

m00natic commented 3 years ago

I probably have missed this, excuse me. Yes, one can change major mode as likes. In my attempt, after changing the major mode with something like M-x fundamental-mode, I had to reenable vlf by hand with M-x vlf-mode. All works fine after.

I think and see within the code that I had done vlf-mode automatically reactivate after major mode change and that was certainly working at that point. But it seems no longer works on GNU Emacs 27. I'll see if this can be addressed.