From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: Re: Customisation for Comments Date: Fri, 11 Feb 2022 21:04:09 +0000 Message-ID: <-oBSWjHnEPX6Ij-6o8c538OwBiy3O59rplNI6SW-JeNjiF49VEOLb_HwjJZoq-WPdBLtc_KOZzg2-mj4QDkgPW4HtVxM5XANs4JCglO6Khc=@protonmail.com> References: <87czjttdmh.fsf@zoho.eu> <878ruhtcmb.fsf@zoho.eu> <_8nnLBMzH_CPdwBGJD5nvSCcTQn7F4nGwKrnU7o5DipOewQDZ_O7zsBU3xpSR5VzthpPII7FrZazGGcGbJKfjQK38iFcYRsWdNfu_xQ4w9c=@protonmail.com> <874k55tbh4.fsf@zoho.eu> <1AU0hzdbC1U_BvDCtw-1uDqhnf1mJ6xRlz3jOEWF5lh0TqU56XVQMibCipjQWArxTsUkrAktC2AGvrO1sZed-koBvPMfXINA-mXowljXOh4=@protonmail.com> <87zgmxrwao.fsf@zoho.eu> Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38999"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 11 22:06:21 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1nId7V-0009rb-Cu for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 22:06:21 +0100 Original-Received: from localhost ([::1]:59090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nId7T-0004X0-Vt for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 16:06:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nId5U-0004Wh-Mc for help-gnu-emacs@gnu.org; Fri, 11 Feb 2022 16:04:16 -0500 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]:59307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nId5S-0000eG-EN for help-gnu-emacs@gnu.org; Fri, 11 Feb 2022 16:04:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1644613451; bh=ZrzInJw49xG9wQxMjsr6AnYoG4I0zmct8X6XRWtVbB8=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=UdwGNvo5QeOKMmgUHTpw94po+Nebe1nnCuIHPsUZQmoDQGbqsVgvMrQafZpFCicKl TWGod8ci/ifBBB6iSS4w0BJWyMROAd/o2e4RWpwgSB93hUK1RpGTUj6FwxP88V+DYu bhsXrf9d5nvp/tzKWzzA/tjbteB5SQOXff/ssh0jYRs/IH8raMX/Da8EN98vNENH0Q xlAAntzNic382TtJZZns7fOgwZzmQSSD2TR6oTcB7ze8mAhRkmLxDbNtjOU/TQw3ps 5CbSquarvqoIVVbZE6XaJY8Wqvzy+bs+SVogBlvg6LM81lilnxG5RtQsAw0X6Nhyss UhT5rxAQtOdaA== In-Reply-To: <87zgmxrwao.fsf@zoho.eu> Received-SPF: pass client-ip=185.70.43.24; envelope-from=goncholden@protonmail.com; helo=mail-4324.protonmail.ch 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135904 Archived-At: ------- Original Message ------- On Friday, February 11th, 2022 at 8:19 PM, Emanuel Berg via Users list for = the GNU Emacs text editor wrote: > goncholden wrote: > > > > then start with a function that increases the contrast by CON. > > > > I have done all that and introduced them into a minor-mode. > > There are a number of minor-modes out there that do provide > > font-lock customization. Extending a major-mode is not > > simple, eg. a derived mode from prog-mode is used to make > > a major-mode, like emacs-lisp-mode (which actually derives > > from lisp-data-mode which derives from prog-mode). > > This means that if I derive from prog-mode, I would need to > > setup the syntax for the major-mode before I can change the > > comment font-locking. > Why do you need modes at all for that? I am relatively new to elisp planning and could do with suggestions. The plan is to make this available to users, and though minor-modes are the way to do things.