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: face-remap-add-relative not executing Date: Mon, 23 Nov 2020 13:50:24 +0100 Message-ID: References: <87k0ucz2o7.fsf@web.de> 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="13165"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 23 13:52:28 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 1khBKV-0003I4-4b for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 13:52:27 +0100 Original-Received: from localhost ([::1]:48058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khBKU-0004qS-0M for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 07:52:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khBId-0004qE-S8 for help-gnu-emacs@gnu.org; Mon, 23 Nov 2020 07:50:31 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:35833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khBIY-00028H-SV for help-gnu-emacs@gnu.org; Mon, 23 Nov 2020 07:50:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606135824; bh=6BFgsJA6N47SGpPMf8GGUxL6F4rmzJ9o3Dt8H0b39P8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=WFwKxMozVhQG9OTil9SH349JzcrHhWryjKeYZdbfRgaEaG0OxgdAKIPyc5x7V59fa LKszmyL+Uj3XfOHzglNgc+Fp0u3VvcxNxWOVRl+z3urVLbmE7fXc9h2rQ0NQHdjLTn 77F+MORlsP646tt2MaQJNx+jQSCPdMSg5uJY46GU= 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-bs01.server.lan [172.19.170.58]) (via HTTP); Mon, 23 Nov 2020 13:50:24 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87k0ucz2o7.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:J5TmLPdVGHdEKFLI3Y1ikI8AhdfEZG0535DxL7q+FIprypV1tDa48SVssEV2A1OKzSGfE 1Xtc8CeEFVDnNd/vQ7w7Jt+IAhgfguXSpCNNZEIrbv+iAMGYkykUphbYZC/wFJL7Dn4w5+R0pM2C 1uyJsXXzH4YGDjzqcgmnZgHAkCD92fPym0jwPeZZgeaiT/ndxcf3rJrtwnytONUVgJSMs1CSwyt8 eO0K+d5o/FhHTGwotBfymwUNMmpACzA5kMguYXVlx6bRVuamAM6BqwKmbBMq2csktP2FCiajcg34 mw= X-UI-Out-Filterresults: notjunk:1;V03:K0:mOAgSBW5H9A=:97zfU+9ikDstE5xKXIlr0e s5qFpJ6llUqI9jb5RVaR2C0z+rReG9jHuENlwc1Vlz40WqvBZUhSvZHnN0b3ayqy0GzVxYbYP GPcUon9R8snYZ38wW4mAq3SgtWGq+saYRUiOYODK9QskDrw5dMsg/cieEGqwlpilTx84JW1tH 9rW6M6EPRS+Yjcv+l3sAx64owT8w9aiEN1nQ51fAKTVlE1ZyJSvMziKyfNJuySxJhNvw0pfiG Co4ETvvvPrb/xTRRxM0CjQYfbE5PAVgnQItgu+37anU5IeJ5Vhec9OWdvGPFb2udXns/eCUfa VBuDBpTDfSzwGahMU1q49Tk7suNdrdlg6Er8Z9R8F8pTdEXeIHKzaS5us1Cxuuy2JmMctMLPW 6x/U17hzZx7dhLLvWoKLfk9l6QHTewdvLKedb1hXBotJTlJMWCFnwLPEG5uurc6x/dO49N+tz IhV1rFRVpLDi4Kv2+umHQx/JHqzKjR9xHSr5vSoSU84m4pW5auBw/NhXXG7QPLcysjPCbVv8T /KgWoYYkzaPTYCSoaTe3CWUiBU7smAq20U4ambBdf0IDzyH/rbqLEfp74IZL09pKdARn/yzna JPGs7Gj5SoGGw= Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net 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:125508 Archived-At: Like so then: (defun orglev-colours () "Sets colours of headings." (face-remap-add-relative '(org-level-1 ((t (:foreground "00FFFF"))))) (face-remap-add-relative '(org-level-2 ((t (:foreground "chartreuse")))= )) (face-remap-add-relative '(org-level-3 ((t (:foreground "dark orange"))= ))) (face-remap-add-relative '(org-level-4 ((t (:foreground "yellow"))))) (face-remap-add-relative '(org-level-5 ((t (:foreground "magenta"))))) (face-remap-add-relative '(org-level-6 ((t (:foreground "tan1"))))) (face-remap-add-relative '(org-level-7 ((t (:foreground "deep sky blue"= ))))) (face-remap-add-relative '(org-level-8 ((t (:foreground "orange red")))= )) ) > Sent: Monday, November 23, 2020 at 1:19 PM > From: "Michael Heerdegen" > To: help-gnu-emacs@gnu.org > Subject: Re: face-remap-add-relative not executing > > Christopher Dimech writes: > > > I have written this piece, however the colours are not taking effect. > > > > (add-hook 'org-mode-hook > > (lambda () > > (face-remap-add-relative > > '(org-level-1 ((t (:foreground "00FFFF")))) > > '(org-level-2 ((t (:foreground "chartreuse")))) > > '(org-level-3 ((t (:foreground "dark orange")))) > > '(org-level-4 ((t (:foreground "yellow")))) > > '(org-level-5 ((t (:foreground "magenta")))) > > '(org-level-6 ((t (:foreground "tan1")))) > > '(org-level-7 ((t (:foreground "deep sky blue")))) > > '(org-level-8 ((t (:foreground "orange red")))) ))) > > Yes, you are using it wrong. The syntax is (see C-h f) > > face spec ... > > I.e. only one face per call. > > > Regards, > > Michael. > > >