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: Re: Changing foreground colours for texinfo--mode Date: Fri, 2 Oct 2020 20:51:59 +0200 Message-ID: References: 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="29204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 02 20:56:57 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 1kOQEi-0007R6-8v for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 20:56:56 +0200 Original-Received: from localhost ([::1]:59746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOQEh-0001rK-29 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 14:56:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOQA0-0007qx-Rj for help-gnu-emacs@gnu.org; Fri, 02 Oct 2020 14:52:05 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:55561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOQ9y-0003UJ-K1 for help-gnu-emacs@gnu.org; Fri, 02 Oct 2020 14:52:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601664719; bh=bnHSWPfErA9GmfyNtyPjo+C2qg/pMGIP/BfJop2joOc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=NQ4mkjTRbkX/ndXmVJeCDcue/7c5+zz5q2RpfMMvK7nevtkVQjgZXm0VXB185XEYV KkmHdXvffNuvvQ29co36CVdLOegpxOPZrNMYB4QWx1K5z0g4HYWCD4n4c/dPt4617k E3zV+o6mczmT0+YVk6LjxOCy2wbxEpDIyQfm2vPI= 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 20:51:59 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:LNdpaSPWP/uR6aVKYuUWmUiVyrL3aojzGleD7/EAs+NxV4kormL5vGnSr2HNqaontfvYC RFnxf68LuQoSof1JoueBBmJFMVvvacI+jBIZ8yWJhSgAG/74SKsO0tRS570kosaQScWoL+IoQ1Fg 5WxCOO5v63h9/xCZKVO/GOIKjr+CHfJveXIQKg8AY5XTA5b9ZevU2YH9/ciz4lWfDshyXEvlbiyY gYTPGktRnLv4kagURP0Jxltt+VcyWXxwehCGBNkYrC1fTJWytOYNOJplqxFAwZZtVS9x9Z02Hwa1 HE= X-UI-Out-Filterresults: notjunk:1;V03:K0:9n7MqhxJvZ8=:4OLbKt3VM5T8WZPRWxJcwr r19e6dnYidmlNgS2GLAJZud18C23g3welRIebu3lLkff9vhr8bzl0KPum/qY8Gz5ps2f+T5+4 nSWhr4PMJwHJrsrjlUvw/YyZgp57sdFb2ydcXzeexJuYOkTOesB/wgcFelrQlnZpaN9PhI0oY hNZHGQ3A5IwX8/pKppEe7D71vA4tVh0QCaab8uRqWLR/DTeknGM4QXAntLYWEpW9gydLkpMWT nOqjfBNkSUVhlHWkLh66tdv6tDCgZWNI1662mTp/wWny4ZDSt2QrbSNoQ7pmzSTebjdeOI9rD gtsCpMW9TDXiytYkNa036XXpsEaNGPN3YJl9H4hnBNaeCBLODkDpnwzkCTQsYxFFvCZl8WowQ TYO2xOE9TfxgE7u9qEUy5PWesNTADao3elAbHDwGRye37O5/1JaM++O2gsNrYVw0OxXJj2YDU NPlhL4WIdNO/gv68xpa8Xo+WVQZ1NxjvbTI3SnOeL+f+I/dv0q1E7cMXgrGhOPQyDKo5ew0iA YXd830desVy66P6ReFHnK5UmgBXEuGgq9YdfRVyLSnsvxD6jfzK1xv2MyjmXgcYrEYu8PMMZM B8GxLaNbWZQv3sw4cD1wrqi4t3kCSBjgFkTaTKwjJDU9WZ88kvig4LpHwOpsx2Z2LDaVaZZSg vAH/6NYseAWJ8XWM+/hSMdjD7VWjveLiEA6x6lDp1SiIP0w== Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/02 14:52:00 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:124248 Archived-At: I have done as below but not sure if it is the right way. Although it works. (add-hook 'texinfo-mode-hook (custom-set-faces '(font-lock-variable-name-face ((t (:foreground "green")))) '(font-lock-builtin-face ((t (:foreground "green")))) ) ) > Sent: Friday, October 02, 2020 at 5:30 PM > From: "Christopher Dimech" > To: "Help Gnu Emacs" > Subject: Changing foreground colours for texinfo--mode > > Currently I have the following code. What I want to do is set the last > two faces in green to be used only in texinfo-mode. > > What code should I use for my particular instance? > > (custom-set-faces > '(font-lock-keyword-face ((t (:foreground "#ffdd00")))) > '(font-lock-type-face ((t (:foreground "#ffdd00")))) > '(font-lock-variable-name-face ((t (:foreground "green")))) > '(font-lock-builtin-face ((t (:foreground "green")))) > ) > > > > >