From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.help Subject: Re: M-x toggle-theme Date: Tue, 22 Nov 2022 23:48:02 +0600 Message-ID: <878rk2x4ml.fsf@disroot.org> References: <875yf9xvja.phibqa@vnoxvs.kbxpyjyhg.info> <8735abj43k.fsf@dataswamp.org> <87wn7niiaf.fsf@codeisgreat.org> <87v8n79b80.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Philip Kaludercic Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 22 18:54:52 2022 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 1oxXTv-0008iT-Py for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 18:54:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxXTW-0003Bs-SL; Tue, 22 Nov 2022 12:54:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxXTG-000355-DZ for help-gnu-emacs@gnu.org; Tue, 22 Nov 2022 12:54:14 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxXTE-0001oP-Vg for help-gnu-emacs@gnu.org; Tue, 22 Nov 2022 12:54:10 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B0F584139B; Tue, 22 Nov 2022 18:54:06 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GhtESJCoeqxc; Tue, 22 Nov 2022 18:54:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669139645; bh=NADfp+fzaYj+4gV0M0+8+DEpCKJm18aC3WjqLQ/36GI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XzGRySfxGsjIhK3Uf6t61ibrrfdNGDcoldJ7ewP3tw3Kgx+KcLMeiR9yJUXDgv3nn /o06mPrJEXTb0ggRSruQVOVt+AXGJEDl1DxtxFia9ylKKTTibD1TzSWYraNj/I+TeL HNyq6E4wg0Bkh38xyEGWM0bAFJ04fgaDB82pvi2BA58T6urG3dipXCFSeuLC95/UZl LTk7wy0JK6Plkindeub/gHmyqjlJ9PymeQPT3yiaP5401VxScbb9qgnyAJuMfdf40y w89rN0UC0LIaxJ3OG8oQretgXn8tfuaTb039j2kPuebuCfe5J7IT/oGi597jhu/HJC 0zP7dUY06fcRQ== In-Reply-To: <87v8n79b80.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 22 Nov 2022 16:59:27 +0000") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141109 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Philip Kaludercic writes: > Jean Louis writes: > >> * Pankaj Jangid [2022-11-22 10:03]: >>> 2. Earlier I wrote a function to toggle themes. Now it is builtin. >> >> I have just tried: M-x toggle-theme and I get error: >> >> toggle-theme: Theme =E2=80=98light-blue=E2=80=99 does not have any known= variants >> >> This may be because=20 >> >> '(custom-enabled-themes '(light-blue)) >> >> So toggle-theme should have better working. > > You misunderstand the mechanism by which toggle-theme works. A theme > may declare a family: > > (deftheme tsdh-light > "A light Emacs theme. > Used and created by Tassilo Horn." > :background-mode 'light > :kind 'color-scheme > :family 'tsdh) > > When a theme of this family is enabled, M-x toggle-theme will either > prompt the user or toggle the theme to some other member of the family > automatically (the latter works if there are only two themes to switch > between). > This is nice, no need for modus-themes-toggle in modus-themes. =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmN9C1IACgkQVTX89U2I YWvXYhAAiLli8VbShgrt2LoG8Z2jHhHAwGMkbj5Wvu6s3LZ+Ce4/RAv/ZdxM5ONs OYe/y9c4Nf5o8EA0YRpK6P/qKW63Ugg2y1Q3qQd6htdS3vmNHQ7cSUTt05Zu7JTs 7psTluq+8AWwSJTO4fIUixPUiN4rM55XixwMonqwGxEi2bG1NGhmaZjnIcbmGV9G qtOiMfPO4H6tjqfNwJJPQCWMZIhibQofGFiXAemjtFlgpIu4UQHKTS6F3c/5TLLG jWylTGqW08Clmixj4moSA0oqrBnw6dMPhxzOEFzIRgGm3ezwN1gHt7Dob1wLO66U Pc73niKzzf0UrmOxC/x/VhCaCcQSVWtvAl1YNt//tsgZoC7BlQM0Hxe2WQy0Rduf m69sen+POxO/1avtt/vpRskrTinN2nRqBp7tK4CzP/lJ8QW9QfNw6OizXhsoXdKU 3Lh3Iq6FgW5jAcGQGyAJOP8YSAv+hT+q1GMf0f2X5vbO8HyHfJ01dF6J/vKEpsA3 5TDDUjSjzgrSVlSrKfi8160jrfQQW0zT6H7MfR42AnGkP4Bmfl9Fg4+P5/qwkQKM GJUUwaqTO9fV2vmvXpiHoAWVfIVtt6K1z/OZ/xHLDSW5Y4p3QavlFuhqyp4/SRJg +BIl0hn4wIQILPhtm/h6fZeFkU986Z7i0olwhsE/eeqC3JtcEgY= =6DmY -----END PGP SIGNATURE----- --=-=-=--