From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Adding git-commit highlight mode? Date: Thu, 02 Jan 2025 22:17:04 +0200 Message-ID: <86o70phsxr.fsf@gnu.org> References: <37733be4476e1c2b6e873c967c79cb0035959a9e.camel@yandex.ru> <083310b3-a288-5c75-c835-84595e134682@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36238"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Hi-Angel@yandex.ru, emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 02 21:17:42 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 1tTRdV-0009J7-Ut for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Jan 2025 21:17:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTRd1-0000I6-QH; Thu, 02 Jan 2025 15:17:11 -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 1tTRcz-0000Do-OL for emacs-devel@gnu.org; Thu, 02 Jan 2025 15:17:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTRcy-000201-AD; Thu, 02 Jan 2025 15:17:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xZbE4/3B549CAN8VY+dVVCjcqeLGy4n8UfULBLemUk4=; b=T2xbVDZSRdbr Cf470App8o6ZN6ouTdO/BQyJ/skwem+TzBdG3iYgrWOA8ruHg/JppOLwA/h6jTLvXNk6/po/cknyl 4IQfK7xBuaGJgnKckkwf0Iaj2PE81TmKrqQuj0kYi7jOjIOIXQS6yN8XwGmyUN47UXcdF2Tw1Yer1 j8nq1CJdxKVcp+d1jUSPbF7xEEbIghv8CxzJ0iE4kZSX8ILxxuah+MFQtMybSjRWP2qiCkqkAGp34 nj+aplLGT64x4nPxnqyNkWofQo7aDcXXDtPdNbUkxUmMThany++9TV/aDEYP82jYU3K9KupGdp3Iv VTCx8H9NbQQbepUkFFsHAg==; In-Reply-To: <083310b3-a288-5c75-c835-84595e134682@gmail.com> (message from Jim Porter on Thu, 2 Jan 2025 11:17:08 -0800) 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:327593 Archived-At: > Date: Thu, 2 Jan 2025 11:17:08 -0800 > From: Jim Porter > > 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.) > > https://github.com/jimporter/git-command-modes/ > > I'm happy to assign copyright to the FSF for this or to upstream this > into the Emacs tree, or whatever people would like here. I don't mind adding this, but please make sure the mode(s) for editing log messages provide at least the features we have in change-log-mode. Thanks.