editorconfig / editorconfig-emacs

EditorConfig plugin for Emacs
https://editorconfig.org
GNU General Public License v3.0
748 stars 107 forks source link

Exclude some archive files by default #354

Closed 10sr closed 3 months ago

monnier commented 3 months ago
  • Exclude some archive files by default

AFAICT the intention is to disable the coding-system part (the rest is likely inapplicable, but if it weren't there wouldn't be a good reason to disable it), right?

In the Emacs-30 version of the code, these archives ignore editorconfig settings simply because auto-coding-alist takes precedence and already sets the coding system for those files (and various others).

Side note: I have a patch in preparation which makes editorconfig use the same approach as in the Emacs-30 code for the coding-system. More specifically it uses an advice on set-auto-coding rather than on insert-file-contents. This would make it obey auto-coding-alist and make the current patch redundant.