From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.devel Subject: Re: Adding git-commit highlight mode? Date: Fri, 03 Jan 2025 23:14:53 +0200 Message-ID: <38701.9255360187$1735938983@news.gmane.org> References: <37733be4476e1c2b6e873c967c79cb0035959a9e.camel@yandex.ru> <083310b3-a288-5c75-c835-84595e134682@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16493"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Konstantin Kharlamov , emacs-devel@gnu.org, Jonas Bernoulli To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 03 22:16:16 2025 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tTp1k-00049y-3Q for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Jan 2025 22:16:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTp0m-000167-Tj; Fri, 03 Jan 2025 16:15:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTp0Y-00010S-85 for emacs-devel@gnu.org; Fri, 03 Jan 2025 16:15:02 -0500 Original-Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTp0V-0001n9-DC for emacs-devel@gnu.org; Fri, 03 Jan 2025 16:15:01 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 97F3CD00049; Fri, 3 Jan 2025 23:14:54 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1735938894; bh=StSYZVrmylFk4sifY2UvVyef67A00DdTwsVls8IK/iE=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=v5ncK8ZLqYFYGLmEcq/72bx9Ak2Js80bTMA709a1VN5cCPPwkEwDra/I/KTzZGnOo lDXKE1iG+1Tiyr2M3Cl6TEmUiUO1JJZP4Qb5vSSVGvAcC2Jxry2Q3qWXkrRoEB7+FT JLwXdn8RHGmD3Rfy77K4Ihmn6n5mFVu2UxMd0Cdu9/asNHTCde3C1LXQSOksiiOCPG c7lWT3dWss65kAUOVubRHRlhZqG/8f0oVjXxbCoCzl2rO6DRlIWANcgyQnjtegsbEY h7ygQrAmMKLSHebiCI1Axm/haUEZLXmhJxDOl/dWLciGzyNeqinKQkaeRAuI1qdJS8 FDvjQQIKF/zsGbD90j+6Gq2luCW6gWZUmY4+eS3GDZccx51dlc+SsEDTCemmhTys2Z sDzFdgwaS++3BQ0VDQT+M3O6QUkNnIpPlZHv1df9ip6FVjok97J7FuQsXukHJT6vAE WKzZH7hyHOCF4LPjMKsIwlhB1IXjsj/LGE5288zHcr/4OqdwdXuPUQc6s+0texTtq9 aNA6wPuchxHe2Uk4L71P3KYl+NdHHFb7IXULdVbP8Wr/sCX8vu1StEVs3LD2XfL/bK GphVrc2dioxKqYkI3/OnveaoXsw8US7QtY6rVKKz77WLzLDDPpG8G8qf1C1ntsmgpx Z9kjMxyKMWLvcZi0x8Pe+WWo= In-Reply-To: <083310b3-a288-5c75-c835-84595e134682@gmail.com> (Jim Porter's message of "Thu, 2 Jan 2025 11:17:08 -0800") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327638 Archived-At: Jim Porter writes: > On 1/2/2025 10:30 AM, Konstantin Kharlamov wrote: >> But Emacs seems to be the only widely popular editor that still doesn't >> provide OOTB at least syntax highlight for git-commit format. So, does >> anyone have opposition to adding a major mode that would be bound to >> filenames like `COMMIT_EDITMSG` and others, and would provide the >> aforementioned highlight? > > For what it's worth, I wrote a very simple package to do this for > myself, since I don't use Magit. (I'm just so used to the Git command > line that I've never taken the time to mess with Magit.) > Is there a way we can do this without reinventing the wheel? E.g. by including Jonas's git-commit mode into Emacs? PS: It would be very beneficial to not uses Github for Emacs development but other FOSS platforms such as Codeberg. No need to feed Copilot with our code to copy it into other non-FOSS code.