emacs_chrome icon indicating copy to clipboard operation
emacs_chrome copied to clipboard

Save buffer resets major mode to Fundamental

Open sphakka opened this issue 6 years ago • 2 comments

With Emacs-26.1 and latest edit-server (v1.14), any major mode set on the edit buffer is reset to Fundamental (or whatever defined via hooks, etc.) when saving the buffer.

sphakka avatar Mar 04 '19 12:03 sphakka

This is behaviour rather deep in Emacs' core file saving code.

stsquad avatar Dec 23 '20 22:12 stsquad

I should point out the easiest workaround is to ensure you name the file with the same extension as you which the major mode to be.

stsquad avatar Dec 31 '20 20:12 stsquad