all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: YUE Daian <sheepduke@gmail.com>
To: Pankaj Jangid <pankaj.jangid@gmail.com>, help-gnu-emacs@gnu.org
Subject: Re: Enable/disable theme while using desktop-save-mode
Date: Wed, 06 Nov 2019 16:03:40 +0800	[thread overview]
Message-ID: <87zhh9a0tf.fsf@work.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <m2o8xpoalt.fsf@gmail.com>

On 2019-11-06 10:38, Pankaj Jangid <pankaj.jangid@gmail.com> wrote:
>> I'd recommend you give more details.  Such as *how* you "disable" your
>> themes and what settings you have noticed are still affected by the
>> (now disabled) themes.
>
> Okay. Here is my configuration,
>
> #+BEGIN_SRC emacs-lisp
> (setq-default custom-enabled-themes '(sanityinc-tomorrow-bright))
>
> ;; Ensure that themes will be applied even if they have not been customized
> (defun reapply-themes ()
>   "Forcibly load the themes listed in `custom-enabled-themes'."
>   (dolist (theme custom-enabled-themes)
>     (unless (custom-theme-p theme)
>       (load-theme theme))))
>
> (add-hook 'after-init-hook 'reapply-themes)
> #+END_SRC
>
> Now, to disable the theme I just commented these lines and restarted
> Emacs. This should start Emacs with default theme with white
> background. But the application starts with dark background although
> some of the settings are gone. The font colours etc are different.
>
> I am suspecting that this is because I have desktop-save-mode
> enabled. If I start with '-Q' option then everything is ok. Because then
> it doesn't read the desktop file.
>
> I want to understand how to completely wipe out theme settings even from
> saved-desktop. (If that is the reason).
>
> Regards,
> -- 
> Pankaj Jangid

I came across this problem before.

I do not know ~sanityinc-tomorrow-bright~, but some themes will modify
some settings once loaded.

Could you please try to load ~whiteboard~ theme (the default one) after
package initialization?

Loading it should really "initializing" the theme.



  reply	other threads:[~2019-11-06  8:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-05 16:37 Enable/disable theme while using desktop-save-mode Pankaj Jangid
2019-11-05 21:20 ` Stefan Monnier
2019-11-06  5:08   ` Pankaj Jangid
2019-11-06  8:03     ` YUE Daian [this message]
2019-11-06 10:34       ` Pankaj Jangid
2019-11-06 16:09     ` Eli Zaretskii
2019-11-06 18:34       ` Pankaj Jangid

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=87zhh9a0tf.fsf@work.i-did-not-set--mail-host-address--so-tickle-me \
    --to=sheepduke@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pankaj.jangid@gmail.com \
    /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.