Is that possible to Emacs to respect .gitattributes and .hgeol?

I am again on Windows with Cygwin emacs-w32 and would like if Emacs honor project specific CR/LF settings for new files...

  • I can't tell whether you're already familiar with directory-local variables in Emacs. If adding a .dir-locals.el file to the project is acceptable, you can always use that. It's not what you're asking for, but it might still be sufficient. – phils Feb 22 '17 at 6:36

Not directly an answer to your question, but I would try out editorconfig:


This will allow you to add a config file which will set line endings, line length, indent style, and more and have it respected by every editor with a plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.