stsquad / emacs_chrome

A Chromium/Firefox "clone" of It's All Text for spawning an editor to edit text areas in browsers. Based on David Hilley's original Chromium extension.
https://chrome.google.com/extensions/detail/ljobjlafonikaiipfkggjbhkghgicgoh
GNU General Public License v3.0
512 stars 91 forks source link

Save buffer resets major mode to Fundamental #159

Open sphakka opened 5 years ago

sphakka commented 5 years ago

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.

stsquad commented 3 years ago

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

stsquad commented 3 years ago

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.