From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: Special hilighting for comments Date: Sat, 10 Dec 2022 18:57:46 +0100 Message-ID: References: <83lenfy8sh.fsf@gnu.org> <5Dc0oNSOvO6IdT1Q19A303nARjz0NjnAt01-brNNh_bv5i_ZDdtr0a7UpDtDcRhboVab_OPmhx3ojUfQOQi66BGMFdmNaT6fwBDykWzQ_EA=@protonmail.com> <83fsdny76f.fsf@gnu.org> <837cyzy0fw.fsf@gnu.org> <8G5PuSmODWraw7jK0Q3tIPzI7XiRoO5CQG3_gHh5Egkz_9nS3nRGR31nkkL-vrXl-u9rSo4QjMc72tefBKxMMsP2H6A9A7D_1rPkfeGU-lA=@protonmail.com> <83bkobw54m.fsf@gnu.org> Reply-To: thibaut.verron@gmail.com 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="38615"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , help-gnu-emacs@gnu.org To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 18:58:39 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 1p447S-0009pz-Br for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 18:58:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p446v-0005Ka-C1; Sat, 10 Dec 2022 12:58:05 -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 1p446u-0005KD-Bl for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:58:04 -0500 Original-Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p446s-0004xX-In; Sat, 10 Dec 2022 12:58:04 -0500 Original-Received: by mail-pl1-x634.google.com with SMTP id k7so8054084pll.6; Sat, 10 Dec 2022 09:58:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2eOwzU5wWkAOebH37fHRKOUWsHDs7rb2OhTyDMntJL8=; b=L7uxTd2Byaf7/RstAeaLdVEZnAMP0CHT5R5gTQAS7iyfLhDbuTXhYyOnGz4gj+T7sk IcwLoCJc1Ucxp1Hu7Elw1tCIe7X+QOY04ZjxNgA/3xGrplbwy2PXx8qigbtWtXId1rnU Ov9jn9Xn0jkyMG99Lu1+peCQxdyjW43IXO+ZzKpCpwvuhyIPU2D5h02YhInMp6BvKQZ+ jfa0aFJIQlxSVHMEub5gmRh1TpU8/qWbhXgOfOmmK+ApeD9wz9YSC5xII/pkJlyu3sxG EmFZoLy6t4FQwwEVe2ZOjoeEMPFRVIcViaJXx5bLhnjaoHb3q8uqgmaUxrDCo/DKLj9V /qUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2eOwzU5wWkAOebH37fHRKOUWsHDs7rb2OhTyDMntJL8=; b=gxswB8t6oEF5zk/6GGD/aGkOJMRuwIT6O/jytKh04UIiqlzR52jalosyCuiH0GIx0e H1LhBwYWgK3NPYCeQ6QKlCuMhozJjg00udmWfL7+b95q421vjbRTb+8CBJpZA0sZwuAM Jg5EhmbU/t1QlRrZJ3BdzK6NgluI66Tn+HGuaP3uH4q1/xmGhlvdfEJTt6Mno5ZnrRCY v47n752Aj8P3zLWzRR150LbeFyFAthNUE5O5aIU0WLPXrlgIU38gBngnhPFHvpvxqSsT MelIs+SvxIviGjTur3eNyxJCztXljpCUx4y0wElVqsoAZk/mbEY0TpjWGC3zSqbIuIBA EccA== X-Gm-Message-State: ANoB5pkoRwSSJVGBf6Ud64GFRHECgOFe37zsCCxEPlVj7uoXlKgn0XwJ qoNvpGM1+5rwy0cMPK/4v0uFTCn6VwXS9cgU/b0= X-Google-Smtp-Source: AA0mqf5Z+/BbbUYMQSuz+3oHwT8zrvSCkDhdpShXpc5QIsxhvnis+HG54McNkpgF7pMD6CqJsrU+TneFOxgfpu0S5+s= X-Received: by 2002:a17:902:ecd1:b0:189:90b9:2500 with SMTP id a17-20020a170902ecd100b0018990b92500mr49557790plh.0.1670695080213; Sat, 10 Dec 2022 09:58:00 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=thibaut.verron@gmail.com; helo=mail-pl1-x634.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:141591 Archived-At: Le sam. 10 d=C3=A9c. 2022 =C3=A0 18:40, Heime = a =C3=A9crit : > ------- Original Message ------- > On Saturday, December 10th, 2022 at 5:16 PM, Eli Zaretskii > wrote: > > > > > Date: Sat, 10 Dec 2022 17:11:38 +0000 > > > From: Heime heimeborgia@protonmail.com > > > Cc: Eli Zaretskii eliz@gnu.org, help-gnu-emacs@gnu.org > > > > > > > This works well: > > > > > > > > (highlight-regexp "^;; \\[.*$") > > > > > > Would it be possible to change only the foreground to some specified > 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 > > > > M-x customize-group RET hi-lock RET > > > > and look there for relevant customizable settings (faces, in this > > case). > > I have not worked much with faces. There is the tutorial but it is too > basic for things I want to do. > If you mean the elisp tutorial https://www.gnu.org/software/emacs/manual/html_node/eintr/ , you might be the first person ever to use "basic" to refer to it. Anyway, a tutorial can introduce you to a language, but you can't expect it to cover everything, that's what the reference documentation is for. Faces: https://www.gnu.org/software/emacs/manual/html_node/emacs/Faces.html