Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save buffer resets major mode to Fundamental #159

Open
sphakka opened this issue Mar 4, 2019 · 2 comments
Open

Save buffer resets major mode to Fundamental #159

sphakka opened this issue Mar 4, 2019 · 2 comments

Comments

@sphakka
Copy link

sphakka commented Mar 4, 2019

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
Copy link
Owner

stsquad commented Dec 23, 2020

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

@stsquad
Copy link
Owner

stsquad commented Dec 31, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants