[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: M-x toggle-theme
From: |
Philip Kaludercic |
Subject: |
Re: M-x toggle-theme |
Date: |
Tue, 22 Nov 2022 18:08:18 +0000 |
Akib Azmain Turja <akib@disroot.org> writes:
> 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.
There was an attempt to deprecate that command in favour of
toggle-theme, but Prot decided against it:
https://lists.sr.ht/~protesilaos/modus-themes/%3C877d116lh4.fsf%40posteo.net%3E#%3C87y1tdeeyw.fsf@protesilaos.com%3E
- Re: Size of startup files, (continued)
- Re: Size of startup files, Rudolf Adamkovič, 2022/11/20
- Re: Size of startup files, Eric S Fraga, 2022/11/21
- Re: Size of startup files, Stefan Monnier, 2022/11/21
- Re: Size of startup files, Emanuel Berg, 2022/11/21
- Re: Size of startup files, Pankaj Jangid, 2022/11/22
- Re: Size of startup files, Jean Louis, 2022/11/22
- M-x toggle-theme, Jean Louis, 2022/11/22
- Re: M-x toggle-theme, Philip Kaludercic, 2022/11/22
- Re: M-x toggle-theme, Akib Azmain Turja, 2022/11/22
- Re: M-x toggle-theme,
Philip Kaludercic <=
- libraries (was: Re: Size of startup files), Emanuel Berg, 2022/11/24
Re: Size of startup files, Emanuel Berg, 2022/11/21
Re: Size of startup files, Marcin Borkowski, 2022/11/22