From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gJ3BNI8xxGG2QQAAgWs5BA (envelope-from ) for ; Thu, 23 Dec 2021 09:21:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YAJUMI8xxGEQEAAAbx9fmQ (envelope-from ) for ; Thu, 23 Dec 2021 08:21:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9FEBE33BB4 for ; Thu, 23 Dec 2021 09:21:35 +0100 (CET) Received: from localhost ([::1]:60178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0JLy-0001HW-FD for larch@yhetil.org; Thu, 23 Dec 2021 03:21:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0JLW-0001HO-5r for emacs-orgmode@gnu.org; Thu, 23 Dec 2021 03:21:06 -0500 Received: from [2a00:1450:4864:20::432] (port=42994 helo=mail-wr1-x432.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n0JLT-0003Qr-BA for emacs-orgmode@gnu.org; Thu, 23 Dec 2021 03:21:05 -0500 Received: by mail-wr1-x432.google.com with SMTP id w20so929452wra.9 for ; Thu, 23 Dec 2021 00:21:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=N69nFlkNq0aZBBTLAG8YLGy3UvBDBridAjmFJtd/yic=; b=O3h72eTFJIpppTGlev1l2USADNdI7f2OB31icM6L5x8R6LE0MrV6y5+TbVLUts19/9 2fxz4Xsqy51S2s1h3BqXE1uDoulZmNuDYob9SNpTai28Xd9DAAX56q7ha4LIYw2uZjuW nY66ejYtBeelfXpqQBWNfD7GDr7OCXWBKik2n2YO0Gg21Y+HgXZ4ef82uZyN92TU92Ry 97XFQ7qOipr9aHKauel2NVAr64RWOaOqwh5zw76Y/JcnUyshbIjVhqu2AN+9t5Dar/yO jHgN/7wZbK1KKaIejnvaBjXjJRzX4ipwi6UdvRrEIbDm/4IZZChF0W4VW6KwWP4peD65 nD3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=N69nFlkNq0aZBBTLAG8YLGy3UvBDBridAjmFJtd/yic=; b=YEY58J++N7A/9QfEte1H3TTqP6mw3ofwRJfmcbl+p44f/cZym5/Q3TE9eBAXmOM5He dz3z+JJ0H4uw9Lc40y9wJLD8G9LsUUk/5QBW5HHL8NcCQvMJq3YZFy/ZeDUgQURo2U31 wtPG5oBxKV0SYysufKtoFrQ1ysKlAXJwbxeEMpU01swMvHJelCQMbdXUhWPiH39O5igw 3Sobas0fpS0X3SooGlmpa7iCUNOGsGCJ6cflPRx6SXyR5R8fRpJp0JEgREHTp4sd3Cgq G3HWrH3NpM6mv0Z2DJp1z5FDmnvxBWLJUNAohKOflqKQkH7KxhBu7OjT6rECePXpJM84 Z0kg== X-Gm-Message-State: AOAM532Tg0nTHfhR0CS7RpZ2rL0CI5SwtTXYdJyreh/JbV8FGVpecz17 6ZQucduw5UBZMiGLxm/m96Cby4p3rl4zADP/ X-Google-Smtp-Source: ABdhPJzmthsAH73/XRPUPcWWHp7ueYrlMJDqXig2mMx5RPiEnEPNWDe+pQx1LQVzJRq4NFTbAr8a2Q== X-Received: by 2002:a5d:6e8c:: with SMTP id k12mr887005wrz.664.1640247660952; Thu, 23 Dec 2021 00:21:00 -0800 (PST) Received: from Home-Mac ([5.102.204.205]) by smtp.gmail.com with ESMTPSA id o2sm4060007wru.109.2021.12.23.00.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 00:21:00 -0800 (PST) From: Daniel Fleischer To: Bruno Barbier Subject: Re: How to add font-lock keywords References: <61c228a1.1c69fb81.c99be.46d6@mx.google.com> Date: Thu, 23 Dec 2021 10:20:58 +0200 In-Reply-To: <61c228a1.1c69fb81.c99be.46d6@mx.google.com> (Bruno Barbier's message of "Tue, 21 Dec 2021 20:35:22 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::432 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=danflscr@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640247695; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=N69nFlkNq0aZBBTLAG8YLGy3UvBDBridAjmFJtd/yic=; b=LLXmvu8QyvzJA0z/KPLxzcoYwnKcH8C/3gwMTGCH9x4QY0DSH/OxaboEMZ8+tawtDyjAQZ sBcX4yEiJY5JUFXPhkbHt0WK3kAs3Kubzrmq7K2+WZrRnykifBbZBDRqB0lLCFxQSvgYfh NaRby7qodXUzTszQhTus/frZ4ibZPcHZdZN34GJYA5SG/di/gnxuIEEQcQ56SUcrY2+Qpg umhLLloDwB7Obz3QSFeWV256GfAljYEMXGuPQJ4g99RhcaPFsVGHHIPCayABcLn1aaLitL 50AgIBl3d/PlYm4928krTpYBiIMrTuvIswqSqF4ebf/XWY5KCxyzIIBHo5B8Lw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640247695; a=rsa-sha256; cv=none; b=FYB7r29AYtWnSG+JKwT9Ugdjwe/wAkHNIs4p6wINY7lMYpZNZGbSnfO8lAzy8y7Dk0dARu +JjsTNMPj0Yvt06jFSEq4cHR0LC6i5E/gLf4LjYexa1BzX1HqpHOPJ1U1W3jrUsmiabWMs SWXVfxQCGIkgyrjX31DLf6p5e9MydgG0r/GdG64SmAIn64cqm22Klc06KxxOtDyEePueXB JVh8uZ7IbdFTuTF3hjXV5L4CDlJExeJ36c1A63FoIK8uYjo+Z9BkIaT3SgFUQuaMyMW0TY eFM//8Z7oyRcu2SFUW95Fhbm6HlQUHyWHHHwSbz2F4tyTXAPGw+zylCVjjsXDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=O3h72eTF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=O3h72eTF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9FEBE33BB4 X-Spam-Score: -5.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: iSQCu3Xi0z0N Bruno Barbier [2021-12-21 Tue 20:35] wrote: > The following works for me, in an org mode buffer: > > ,---- > | (font-lock-add-keywords nil '(("books" . 'org-level-4)) t) > `---- > No need to call font-lock-update or restart: any new or modified text > gets the new fontification. Thanks, it works with the quote. -- Daniel Fleischer