* Custom themes and precedence
@ 2011-09-22 23:59 Dave Abrahams
2011-10-01 17:58 ` Chong Yidong
0 siblings, 1 reply; 5+ messages in thread
From: Dave Abrahams @ 2011-09-22 23:59 UTC (permalink / raw)
To: emacs-devel
Hi all,
I thought I'd use themes to store groups of settings that should take
effect in specific circumstances; for example, on machine X, I have a
fonts not available elsewhere and I'd like to use those by default when
on machine X. So I programmatically look for a theme based on the
machine name and if found, I enable it.
I customized default-frame-alist in the theme for machine X... which
worked fine until I customized default-frame-alist "non-themedly"
somewhere else. That caused the new setting to go into the "user" theme
*which takes precedence over all others*. That last bit isn't working
out so well for my use-case. Should this usage be accomodated, is it
outside the intended applications of themes, or...?
TIA,
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Custom themes and precedence
2011-09-22 23:59 Custom themes and precedence Dave Abrahams
@ 2011-10-01 17:58 ` Chong Yidong
2011-10-01 18:27 ` Dave Abrahams
0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2011-10-01 17:58 UTC (permalink / raw)
To: Dave Abrahams; +Cc: emacs-devel
Dave Abrahams <dave@boostpro.com> writes:
> I customized default-frame-alist in the theme for machine X... which
> worked fine until I customized default-frame-alist "non-themedly"
> somewhere else. That caused the new setting to go into the "user" theme
> *which takes precedence over all others*. That last bit isn't working
> out so well for my use-case. Should this usage be accomodated, is it
> outside the intended applications of themes, or...?
Non-theme customization settings are intended to take precedence over
theme settings. The idea is that if you load a theme that's not written
by you, it is easy to use Customize to override some of its settings.
I think I understand the problem you have, but I don't have any easy
solution.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Custom themes and precedence
2011-10-01 17:58 ` Chong Yidong
@ 2011-10-01 18:27 ` Dave Abrahams
2011-10-02 2:04 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Dave Abrahams @ 2011-10-01 18:27 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel
on Sat Oct 01 2011, Chong Yidong <cyd-AT-stupidchicken.com> wrote:
> Dave Abrahams <dave@boostpro.com> writes:
>
>> I customized default-frame-alist in the theme for machine X... which
>> worked fine until I customized default-frame-alist "non-themedly"
>> somewhere else. That caused the new setting to go into the "user" theme
>> *which takes precedence over all others*. That last bit isn't working
>> out so well for my use-case. Should this usage be accomodated, is it
>> outside the intended applications of themes, or...?
>
> Non-theme customization settings are intended to take precedence over
> theme settings. The idea is that if you load a theme that's not written
> by you, it is easy to use Customize to override some of its settings.
I guess the question is, what about themes that *are* written by me,
that I may want to switch on or off programmatically?
> I think I understand the problem you have, but I don't have any easy
> solution.
I know there's no easy solution within the code as-is. I guess I'm
asking whether my desire for adjustable theme precedence ought to be
accomodated.
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Custom themes and precedence
2011-10-01 18:27 ` Dave Abrahams
@ 2011-10-02 2:04 ` Stefan Monnier
2011-10-02 8:40 ` Dave Abrahams
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2011-10-02 2:04 UTC (permalink / raw)
To: Dave Abrahams; +Cc: Chong Yidong, emacs-devel
>>> I customized default-frame-alist in the theme for machine X... which
>>> worked fine until I customized default-frame-alist "non-themedly"
>>> somewhere else. That caused the new setting to go into the "user" theme
>>> *which takes precedence over all others*. That last bit isn't working
>>> out so well for my use-case. Should this usage be accomodated, is it
>>> outside the intended applications of themes, or...?
>> Non-theme customization settings are intended to take precedence over
>> theme settings. The idea is that if you load a theme that's not written
>> by you, it is easy to use Customize to override some of its settings.
> I guess the question is, what about themes that *are* written by me,
> that I may want to switch on or off programmatically?
One approach is to encourage such users to put all their customizations
into themes (i.e. avoid the "user" theme).
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Custom themes and precedence
2011-10-02 2:04 ` Stefan Monnier
@ 2011-10-02 8:40 ` Dave Abrahams
0 siblings, 0 replies; 5+ messages in thread
From: Dave Abrahams @ 2011-10-02 8:40 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Chong Yidong, emacs-devel
on Sat Oct 01 2011, Stefan Monnier <monnier-AT-iro.umontreal.ca> wrote:
>>>> I customized default-frame-alist in the theme for machine X... which
>
>>>> worked fine until I customized default-frame-alist "non-themedly"
>>>> somewhere else. That caused the new setting to go into the "user" theme
>>>> *which takes precedence over all others*. That last bit isn't working
>>>> out so well for my use-case. Should this usage be accomodated, is it
>>>> outside the intended applications of themes, or...?
>>> Non-theme customization settings are intended to take precedence over
>>> theme settings. The idea is that if you load a theme that's not written
>>> by you, it is easy to use Customize to override some of its settings.
>> I guess the question is, what about themes that *are* written by me,
>> that I may want to switch on or off programmatically?
>
> One approach is to encourage such users to put all their customizations
> into themes (i.e. avoid the "user" theme).
Heh. Is that easier in Emacs24 than it is in 23?
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-02 8:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-22 23:59 Custom themes and precedence Dave Abrahams
2011-10-01 17:58 ` Chong Yidong
2011-10-01 18:27 ` Dave Abrahams
2011-10-02 2:04 ` Stefan Monnier
2011-10-02 8:40 ` Dave Abrahams
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).