From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Special hilighting for comments Date: Mon, 12 Dec 2022 00:59:47 +0000 Message-ID: <1FKsi8A03aktCBdtETrAgd0fYatyLmYQDsPxuFj20W6zdURHlZEbqxhSxsyrDHnMnRQnt2fkBbFOwsxbO6Pa7_yvtTGpepJ3uT1bVuFEaXk=@protonmail.com> References: <837cyzy0fw.fsf@gnu.org> <8G5PuSmODWraw7jK0Q3tIPzI7XiRoO5CQG3_gHh5Egkz_9nS3nRGR31nkkL-vrXl-u9rSo4QjMc72tefBKxMMsP2H6A9A7D_1rPkfeGU-lA=@protonmail.com> <83bkobw54m.fsf@gnu.org> <83a63vw1mp.fsf@gnu.org> 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="39761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 12 02:00:42 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 1p4XBS-000ACK-Oy for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Dec 2022 02:00:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4XAp-00012o-8Z; Sun, 11 Dec 2022 20:00:03 -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 1p4XAn-00012Z-GQ for help-gnu-emacs@gnu.org; Sun, 11 Dec 2022 20:00:01 -0500 Original-Received: from mail-40135.protonmail.ch ([185.70.40.135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4XAl-0000GJ-Jw; Sun, 11 Dec 2022 20:00:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1670806796; x=1671065996; bh=SUgu3CKZcj4kM8zFaO87RYPCPdCGVcKl/rjUU0yvTR4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=LpFzZHATpuO7AhkVXJ2RHKGXLILkYU2cZpImh63lgYaaqN9XnikwU8I7XZGJu0oE1 2AhkZ9PO1aW6ioCx3tnAlNAW8Z79dCMN2FrWqyt8QJ+T4wUJa/e1XASqRSUCdqGy9y bFK+XuA62m9yrpOBlGSqqwHBHkP31FXJk7BxhefNE6dISCnKiLzlF8nKFJ6oZsXEXd 6LD3orVd0IY5ClcZNVI5ZiYoAnZKyOfKMCotfHF8vogG/aqfcaEwmyFlqLNcYqFoU0 aUc69pGBVDHpSltAePrJdHiKpmY243WCmu8cj7IqOYy/u/AwgpZ9RI4pjwrsBb7uFk fAASMGuI9HK2A== In-Reply-To: <83a63vw1mp.fsf@gnu.org> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.135; envelope-from=heimeborgia@protonmail.com; helo=mail-40135.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141653 Archived-At: ------- Original Message ------- On Saturday, December 10th, 2022 at 6:32 PM, Eli Zaretskii w= rote: > > Date: Sat, 10 Dec 2022 17:39:34 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=20 > > > > Would it be possible to change only the foreground to some specifie= d colour? > > > > Do you ever consult the built-in documentation before you ask > > > > questions here? Because the answer to that is right at your > > > > fingertips: just type > > >=20 > > > M-x customize-group RET hi-lock RET > > >=20 > > > and look there for relevant customizable settings (faces, in this > > > case). > >=20 > > I have not worked much with faces. There is the tutorial but it is too = basic for things I want to do. >=20 >=20 > The above will present an easy-to use UI for customizing the face's > colors. There is "font-lock-add-keywords" and the variable "font-lock-keywords". P= repending in the OVERRIDE field, a new face will be seen on top of the norm= al comment face. How does the "font-lock-add-keywords" compare to "hi-lock" ?