From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Adding git-commit highlight mode? Date: Thu, 2 Jan 2025 11:17:08 -0800 Message-ID: <083310b3-a288-5c75-c835-84595e134682@gmail.com> References: <37733be4476e1c2b6e873c967c79cb0035959a9e.camel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9629"; mail-complaints-to="usenet@ciao.gmane.io" To: Konstantin Kharlamov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 02 20:17:44 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 1tTQhU-0002NN-HB for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Jan 2025 20:17:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTQgz-0002op-BC; Thu, 02 Jan 2025 14:17:13 -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 1tTQgw-0002o4-Ug for emacs-devel@gnu.org; Thu, 02 Jan 2025 14:17:10 -0500 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTQgv-0006y6-BS for emacs-devel@gnu.org; Thu, 02 Jan 2025 14:17:10 -0500 Original-Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2ee46851b5eso13027826a91.1 for ; Thu, 02 Jan 2025 11:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735845428; x=1736450228; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=u2XGEAnnz+92VbV+SFVtojcKD2xLB0DCFLx+yvYmdIo=; b=fdj099JPJx6zMldFkhNyB+1sEU8PQBIfaB5VGabF1Tuu7FKN3moIyhD3caL4grmbty A1lyekvvQH9K06h9n9oEr/x71kBs8EpVNd8mz7/FZPCje8lMXFKiEPo8A8gU/uIz7glx Wdt7qeZd3L8gBIRAk1bEbWUIzomh/eCm79EFRZHt4vPG9PonyVNZt8zewKOYiGa3X5lI tKhN+oCVn4u4DJ/d5dQ0gQU8E1TD0JXUZktxfmxq2a4rh0cC92whnrdqMnLjFujrxDJp x/YTFl0sHuWe4oWf0mwy8IApSIG/YjyMMahVUMSqyutxoz8aPm/0wvvNwRHMuLbFF49t cFTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735845428; x=1736450228; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u2XGEAnnz+92VbV+SFVtojcKD2xLB0DCFLx+yvYmdIo=; b=kLnzOGXZ5xcjSz8m/JKIEG5T3y4LLY4wA81tYraHnQ0OkhEXGroRiZYVqWQ9Tsssqn XC5Nrg0nZJ78DHrI8V1bCSfO3GFX/huN5dV/pNKPX0pc5wuhoQn5dcBr4v3P7c46FR9U K1QTURUt96tH+vZsDIQ5o0/1oqdyrelvucWeYMKgO2AZN4kxtizExMxQVUu6CEFVMD2L ZewfOdI/6ODav5j7e8yLYTQTjf9/LtUDhUn2NZ39r6BPZTn6pWrgIimkPkn/yl1df1jj n6zdO2KZKhrvgDrkw8IqMn0DHJwEH8MTqWqZw3aMnHKcjy5rJiPE7v9Gc1ZONaQFGDPt 1+BA== X-Forwarded-Encrypted: i=1; AJvYcCV6pKjwr5O4JF71wR7tU69gx8NFmEeKwrazdW/AVRjhdEMrCFxAv8C0aH+A88Kp4U/dTpXAkVnb8uS3wQ==@gnu.org X-Gm-Message-State: AOJu0YzR4V7rn3I1hZtFNmx2q8kXdjtsZSArzDXf5ohaBZqPaPwVniNr QEm2I+LLvjn0T+sTHDGnk5tMMKM+z/9fLNgmLnYezw4aVRe3c3quj68Ijw== X-Gm-Gg: ASbGncvhbQ9nJu4cPu5qFr/VgHMA2XhstzaV2uBEj247io2sSv9OMola9InfaPbJbMF 6P/Jx7WaJqR1vhO69WoBSGwmorYg3sIgWvuFKIk/awiDhj9m0py1bSy5OKpP73rs9ag0h0XhdDn VhVwyh3D3zjRMITk0F9EuImMc0/nC0juiSX6zpGU+Pcb6bdrLy+HY1ZRKMt0/ndeKKF4BtplsKK jD/2DkkqrvK6LlPr0nSqVTByMtqq/j//hrlab/1l31xpRk78581ZxbzyzIqSr0OPOSypsQJv5S9 vseFzeNg4R7+CIoldN37hYbqsrPm8ru8Bw== X-Google-Smtp-Source: AGHT+IHkG5i++lsOSmEoI4IRxGAgOTfDuakhi1jf2lq9txWhrhwrYH2t7Vf9Y4Q/MJ4JXUO9Y8yCLg== X-Received: by 2002:a17:90b:5247:b0:2ea:4578:46d8 with SMTP id 98e67ed59e1d1-2f452e22c2amr71144072a91.9.1735845427721; Thu, 02 Jan 2025 11:17:07 -0800 (PST) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2f2ed62cd95sm31913966a91.19.2025.01.02.11.17.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jan 2025 11:17:07 -0800 (PST) Content-Language: en-US In-Reply-To: <37733be4476e1c2b6e873c967c79cb0035959a9e.camel@yandex.ru> Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:327585 Archived-At: 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.