From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Highlighting New Keywords in texinfo-mode Date: Fri, 2 Oct 2020 22:57:47 +0200 Message-ID: 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="3856"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 02 22:59:34 2020 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 1kOS9O-0000vW-3E for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 22:59:34 +0200 Original-Received: from localhost ([::1]:49900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOS9M-0001qv-Ur for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 16:59:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOS7j-0001pc-LN for help-gnu-emacs@gnu.org; Fri, 02 Oct 2020 16:57:51 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:43679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOS7h-00011X-Mi for help-gnu-emacs@gnu.org; Fri, 02 Oct 2020 16:57:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601672267; bh=4cG+gNoW6ex5ZQEeyB/93t3/eR0Nm20SIyT5b5kW5OM=; h=X-UI-Sender-Class:From:To:Subject:Date; b=RtJOSZ93BDetid7+aR1mgksOGiTSfldbBznFvdbCQArgjxxPhJZce+4az5XciIavE cMm0nmpvC91FiIRccUa1Txf8wtQQQ6bv9oWf08tGnYhsvK4vPACxtaaggcZXfVbOxi 5b+Gd6o5J1UL6wRUUpi9JM9p2qfI/NWSLgZXWgK8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs12.server.lan [172.19.170.180]) (via HTTP); Fri, 2 Oct 2020 22:57:47 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:CcBn8B8/GFgcePCfumHVa36T0oB1Sqr9aP1iNAwIm1SgyeZPMEJBfVP6Vdrhivoc8Q17y xi6g3LU6MVhLcKCxtkTbD5eOAQJkEnkyY///iF9YTjcYjS1P1C3Ux+cRPoHC1QNgzzIhzGf2txqi O045ObNidSyL79ATrWVcrpON3IwxciamMYQYRarrbHOYB9PFOVHQKrRlNUYrQ4YiqKQqBcv3K/zB T8QSeQf936ZDUWOlnc3DtQabJIp4hgI8HK1Oo6fQV9kCOmYrk6zKb58NVjB/jtH+y1Osem1vumrG iU= X-UI-Out-Filterresults: notjunk:1;V03:K0:GVZamQFyUro=:9vCg2ZDPEs/RFElhGUStDP VS2EbNK3jjQtR821iuiRcA0uUEH6rNNI3zG7IKCr7PhsJqcbpv/PkZ1GPhCUBhnzluQCGjIX/ onvCRMk+sAbJgVYDnkoXnd8s2OVzeyEFqh1o2L7ruDqtJpE+XXNphpM9BawgkibOGdnWoP4Bn o3pPl07vzujVbmJuWamUA7DXxm051SWqRw49q80qv4Ov86KlnaDLRFn0JHS0UIHt7n36APC4V 2ZdTXf1Cj/iP/UoaACHsWBa6MgPbXNdiN5o4GbU35dh9iympgkNNCsR5Ne4ZYBmRErYXer1Mk lov2MgYoQbpsjwYFkeTgxEq4tJ3sXWJ8O5IlE2wrbxhCkxWEBXR7xqMxQH+gCfbC8M4ffZ721 6bP1CXV68XI5e4v75Oh+s8dPJgvZ6w0B23iUsbeqjzWEJlddfW8WHaEWLi8YgoI+HaEWVdP3B G9ATj2da9HnSu9hBHEvoO5s+1dueKjtyPpe42H2euK+SgNSsSsjttaMbdVyIyr8WCKwfmVU53 qKTvwKaci4ZDVkVZOG/4tg/IvJgStlREVNFxez5ZoW+e+db2d68A+/PZmEHmr+JStTiYD8rLP Hl05QPwfJ3cTs1gizzp+U3SJj1tuwlAU3mPib8MpW+d47JAkIUbCka2L+tb1z8OCeM3bg9ntC DaYX5auslZ+yOoe2JL919DqYHA1zMnJTNc1cTADxw8J+nbTOIKnqJ6NOUQDRe+Y6UF8Q= Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/02 16:57:47 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.23 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:124249 Archived-At: I want to highlight new keywords such as \quad \over \ cos Using the following command seems to work, however still some are not prop= erly highlighted ( font-lock-add-keywords 'texinfo-mode '( ("\\quad" . font-lock-keyword-face) ("\\over" . font-lock-keyword-face) ("\\theta" . font-lock-keyword-face) ("\\omega" . font-lock-keyword-face) ("\\cos" . font-lock-keyword-face) ) )