help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jar files won't open in emacs 27.1 on debian 11.6 "bullseye"


From: Steinar Bang
Subject: Re: jar files won't open in emacs 27.1 on debian 11.6 "bullseye"
Date: Mon, 03 Apr 2023 09:43:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

>>>>> Steinar Bang <sb@dod.no>:

>> I will look into the .editorconfig settings to see if there is a way
>> to exclude .jar files and/or the target directories from what
>> editorconfig affects, and if there isn't, open an issue on
>> editorconfig-emacs.

> I couldn't find any config for excluding files from editorconfig-emacs,
> so I opened the following issue on editorconfig-emacs:
>  https://github.com/editorconfig/editorconfig-emacs/issues/294

The editorconfig-emacs mode does indeed have config for excluding modes and 
buffers:
 
https://github.com/editorconfig/editorconfig-emacs/blob/master/editorconfig.el#L338

I tried excluding the Zip-Archive major mode, but that had no effect:
jar files in projects with .editorconfig files, still failed to open
correctly.
 
https://github.com/editorconfig/editorconfig-emacs/issues/294#issuecomment-1493814857

But the editorconfig-exclude-regexps which matches buffer names, worked
for me:
 
https://github.com/editorconfig/editorconfig-emacs/issues/294#issuecomment-1493824449

I replaced the customizations with hand-written config in my .emacs and
the following also works:

;; editorconfig formatting support
;;;================================
(when (locate-library "editorconfig")
  (editorconfig-mode 1)
  (setq editorconfig-exclude-regexps '("\\.jar$")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]