From unknown Tue Aug 19 09:31:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29443: Document how to set themes depending on a condition Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Nov 2017 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29443 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 29443@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.151163490431642 (code B ref -1); Sat, 25 Nov 2017 18:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2017 18:35:04 +0000 Received: from localhost ([127.0.0.1]:58190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIfI7-0008EI-Nb for submit@debbugs.gnu.org; Sat, 25 Nov 2017 13:35:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIfI6-0008Dl-J0 for submit@debbugs.gnu.org; Sat, 25 Nov 2017 13:35:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIfI0-0005Nq-Lk for submit@debbugs.gnu.org; Sat, 25 Nov 2017 13:34:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIfI0-0005N9-I6 for submit@debbugs.gnu.org; Sat, 25 Nov 2017 13:34:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIfHz-0007Sq-E9 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2017 13:34:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIfHw-0005Ka-B3 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2017 13:34:55 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:35052 helo=homiemail-a1.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIfHw-0005Je-1w for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2017 13:34:52 -0500 Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id 8DCA534806C for ; Sat, 25 Nov 2017 10:34:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=2Pnts7DQGw7jucAS3ZO CTCeKQZA=; b=YdxkxyQaiwfb+r8aSR8Ab4wxhH/+jv40j8UK1mKYb2SAK6i5Xet TcIqc5rGU9SR/yIIMnTGrnZMSv4n7yRiQs2blO4bJrqc/2OAEdK7bMBPLTpfDtSv 4cqQFVwIZogJurrrWn0j6dND5zrDZUQCM/o2eKPfFFEZTik9319pdQUE= Received: from jidanni.org (220-140-11-114.dynamic-ip.hinet.net [220.140.11.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPSA id C842434806A for ; Sat, 25 Nov 2017 10:34:47 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Sun, 26 Nov 2017 01:40:16 +0800 Message-ID: <873752ntof.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) In (info "(emacs) Custom Themes") after Setting or saving Custom themes actually works by customizing the variable =E2=80=98custom-enabled-themes=E2=80=99. The value of this = variable is a list of Custom theme names (as Lisp symbols, e.g., =E2=80=98tango=E2=80=99= ). Instead of using the =E2=80=98*Custom Themes*=E2=80=99 buffer to set =E2=80=98cu= stom-enabled-themes=E2=80=99, you can customize the variable using the usual customization interface, e.g., with =E2=80=98M-x customize-option=E2=80=99. please add: Here's how to set a theme depending on a condition: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. (if(/=3D 0(user-uid)) '(custom-enabled-themes (quote (wheatgrass))))= ) In the above we have added a condition to what Custom has put into th= e customization file we found on our disk. We set the wheatgrass theme if we are not root. One could go further and set different themes for different seasons. = The sky's the limit! From unknown Tue Aug 19 09:31:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29443: Document how to set themes depending on a condition Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2017 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29443 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 29443@debbugs.gnu.org Received: via spool by 29443-submit@debbugs.gnu.org id=B29443.151170379926318 (code B ref 29443); Sun, 26 Nov 2017 13:44:02 +0000 Received: (at 29443) by debbugs.gnu.org; 26 Nov 2017 13:43:19 +0000 Received: from localhost ([127.0.0.1]:58660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIxDL-0006qQ-Lp for submit@debbugs.gnu.org; Sun, 26 Nov 2017 08:43:19 -0500 Received: from sinyavsky.aurox.ch ([37.35.109.145]:53524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIxDK-0006q9-3t for 29443@debbugs.gnu.org; Sun, 26 Nov 2017 08:43:18 -0500 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id C6B81225D9 for <29443@debbugs.gnu.org>; Sun, 26 Nov 2017 13:35:50 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-transfer-encoding:content-type:content-type:mime-version :references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1511703349; x=1512567350; bh=tlcU01kbiObA+ 4WH1OAIuu5/nsvlKvJOxwYM86k8XJs=; b=MMp1Ji/8rWPF0u/iqIBTfHRV3dLE/ uRN5pXpQM4ftnYx8fI1wCe37Rcwtkta17Khyh1buwYKOJlDcfkJ7v0fJS3Np8E7j AZKA4Mkz4hntij6vj536ODKbgHRT0uM1CigcYTHGnBteEAle4dsigEhYz5WH7Hru YVE46dV4gB/Bd0= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dUeZNSetitwr for <29443@debbugs.gnu.org>; Sun, 26 Nov 2017 13:35:49 +0000 (UTC) Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 06421225C0; Sun, 26 Nov 2017 13:35:47 +0000 (UTC) Date: Sun, 26 Nov 2017 14:44:26 +0100 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: <873752ntof.fsf@jidanni.org> References: <873752ntof.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) It's an interesting idea, but if you later try to customize your enabled theme further, you will lose the handwritten condition. Maybe Customize could be improved to support this use case. From unknown Tue Aug 19 09:31:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29443: Document how to set themes depending on a condition Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2019 21:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29443 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: charles@aurox.ch (Charles A. Roelli) Cc: 29443@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Received: via spool by 29443-submit@debbugs.gnu.org id=B29443.15709139617746 (code B ref 29443); Sat, 12 Oct 2019 21:00:02 +0000 Received: (at 29443) by debbugs.gnu.org; 12 Oct 2019 20:59:21 +0000 Received: from localhost ([127.0.0.1]:34311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJOTx-00020s-9v for submit@debbugs.gnu.org; Sat, 12 Oct 2019 16:59:21 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJOTv-00020g-EJ for 29443@debbugs.gnu.org; Sat, 12 Oct 2019 16:59:20 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJOTq-0008MS-02; Sat, 12 Oct 2019 22:59:16 +0200 From: Lars Ingebrigtsen References: <873752ntof.fsf@jidanni.org> Date: Sat, 12 Oct 2019 22:59:13 +0200 In-Reply-To: (Charles A. Roelli's message of "Sun, 26 Nov 2017 14:44:26 +0100") Message-ID: <871rvhk7dq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: charles@aurox.ch (Charles A. Roelli) writes: > It's an interesting idea, but if you later try to customize your > enabled theme further, you will lose the handwritten condition. Yes, so I don't think we want to document anything along the lines suggested. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) charles@aurox.ch (Charles A. Roelli) writes: > It's an interesting idea, but if you later try to customize your > enabled theme further, you will lose the handwritten condition. Yes, so I don't think we want to document anything along the lines suggested. > Maybe Customize could be improved to support this use case. I think that's beyond the scope of Customize, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 16:59:27 2019 Received: (at control) by debbugs.gnu.org; 12 Oct 2019 20:59:27 +0000 Received: from localhost ([127.0.0.1]:34314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJOU3-00021D-IA for submit@debbugs.gnu.org; Sat, 12 Oct 2019 16:59:27 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJOU2-000215-2X for control@debbugs.gnu.org; Sat, 12 Oct 2019 16:59:26 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJOTz-0008Mc-7r for control@debbugs.gnu.org; Sat, 12 Oct 2019 22:59:25 +0200 Date: Sat, 12 Oct 2019 22:59:22 +0200 Message-Id: <87zhi5ist1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #29443 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 29443 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 29443 quit