From: Akib Azmain Turja <akib@disroot.org>
To: Philip Kaludercic <philipk@posteo.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: M-x toggle-theme
Date: Tue, 22 Nov 2022 23:48:02 +0600 [thread overview]
Message-ID: <878rk2x4ml.fsf@disroot.org> (raw)
In-Reply-To: <87v8n79b80.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 22 Nov 2022 16:59:27 +0000")
[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]
Philip Kaludercic <philipk@posteo.net> writes:
> Jean Louis <bugs@gnu.support> writes:
>
>> * Pankaj Jangid <pankaj@codeisgreat.org> [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 ‘light-blue’ does not have any known variants
>>
>> This may be because
>>
>> '(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.
--
Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
Fediverse: akib@hostux.social
Codeberg: akib
emailselfdefense.fsf.org | "Nothing can be secure without encryption."
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2022-11-22 17:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-20 19:42 Size of startup files Bob Newell
2022-11-20 20:24 ` Colin Baxter
2022-11-21 21:52 ` Bob Newell
2022-11-22 10:00 ` Eric S Fraga
2022-11-20 22:07 ` Rudolf Adamkovič
2022-11-21 0:46 ` Samuel Wales
2022-11-21 9:37 ` Eric S Fraga
2022-11-21 22:00 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-21 23:10 ` Emanuel Berg
2022-11-22 7:02 ` Pankaj Jangid
2022-11-22 11:45 ` Jean Louis
2022-11-22 14:34 ` M-x toggle-theme Jean Louis
2022-11-22 16:59 ` Philip Kaludercic
2022-11-22 17:48 ` Akib Azmain Turja [this message]
2022-11-22 18:08 ` Philip Kaludercic
2022-11-23 10:54 ` libraries (was: Re: Size of startup files) Emanuel Berg
2022-11-21 23:20 ` Size of startup files Emanuel Berg
2022-11-22 10:44 ` Marcin Borkowski
2022-11-22 14:45 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rk2x4ml.fsf@disroot.org \
--to=akib@disroot.org \
--cc=help-gnu-emacs@gnu.org \
--cc=philipk@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.