all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <87r0t1if6y.fsf@dod.no> (raw)
In-Reply-To: <87wn2tihck.fsf@dod.no> (Steinar Bang's message of "Mon, 03 Apr 2023 08:56:43 +0200")

>>>>> 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	other threads:[~2023-04-03  7:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-02  6:15 jar files won't open in emacs 27.1 on debian 11.6 "bullseye" Steinar Bang
2023-04-02  7:03 ` Eli Zaretskii
2023-04-02 15:03   ` Steinar Bang
2023-04-02 15:12     ` Eli Zaretskii
2023-04-02 18:59       ` Steinar Bang
2023-04-02 19:23         ` Eli Zaretskii
2023-04-02 22:53           ` Steinar Bang
2023-04-03  6:35             ` Steinar Bang
2023-04-03  6:56               ` Steinar Bang
2023-04-03  7:43                 ` Steinar Bang [this message]
2023-05-07  7:42                 ` Steinar Bang
2023-04-02 20:10         ` Yuri Khan
2023-04-02 22:57           ` Steinar Bang
2023-04-02  8:35 ` Michael Albinus
2023-04-02 12:50   ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0t1if6y.fsf@dod.no \
    --to=sb@dod.no \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.