all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <pankaj.jangid@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Enable/disable theme while using desktop-save-mode
Date: Wed, 06 Nov 2019 10:38:30 +0530	[thread overview]
Message-ID: <m2o8xpoalt.fsf@gmail.com> (raw)
In-Reply-To: <jwv36f2hvib.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 05 Nov 2019 16:20:00 -0500")

> 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



  reply	other threads:[~2019-11-06  5:08 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 [this message]
2019-11-06  8:03     ` YUE Daian
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=m2o8xpoalt.fsf@gmail.com \
    --to=pankaj.jangid@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.