From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: Re: Enable/disable theme while using desktop-save-mode Date: Wed, 06 Nov 2019 10:38:30 +0530 Organization: Code is Great! Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="169724"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 06 06:08:51 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSDYn-000i0U-KU for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Nov 2019 06:08:49 +0100 Original-Received: from localhost ([::1]:52740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSDYl-0004k1-PG for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Nov 2019 00:08:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59525) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSDYb-0004js-Lc for help-gnu-emacs@gnu.org; Wed, 06 Nov 2019 00:08:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSDYa-0006D8-Ml for help-gnu-emacs@gnu.org; Wed, 06 Nov 2019 00:08:37 -0500 Original-Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:38991) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSDYa-0006Co-Ge for help-gnu-emacs@gnu.org; Wed, 06 Nov 2019 00:08:36 -0500 Original-Received: by mail-pf1-x42a.google.com with SMTP id x28so14715562pfo.6 for ; Tue, 05 Nov 2019 21:08:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:organization:references:date:in-reply-to:message-id :user-agent:mime-version; bh=fXw2tZpTBxkA1TXI1x28Z6LzS13NQbwTjrU3zs+sikI=; b=IwWfXFZ/hOCqJufUQEUwRSVKsQzVG44N/fZsJAmXx/cQrtHseRzdYfZ12ZBTxn4DKh 5+LwSud/6r6lw66kSqv7VGlpsC/U++AsgzYEAiAaVC6IoMMVUFO9QTyiTJNmDT1vWtnR r8gtFMZx3vOiRXXPcpfPUhTHSj2F4DxRg7kpsm17zbDj5etSy3cG7m7JSTyceozvhxI/ wKMdh9la/tROzMctJVa9QlN59brNq4TNQvN+t1dqGLg+e+2KEiLCTQplVbGzpTjt/8na SHMEQ02Lq/1LOZr6Xicws2w0fum0n7pxLsQCJZkoqkqiQOBqS7Q1DiBXlDVltzQK+rNa MeMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=fXw2tZpTBxkA1TXI1x28Z6LzS13NQbwTjrU3zs+sikI=; b=Et25G6pm9cccZo6fr785JOsUPfjBMckmqk5czwI2w9nhLcvhVVXhVdPe1+ung+8YV6 tt7DRGTSXU52EF6dWj94920uoQsrhpBCkx50kSdc+5KQmg01BMMLoTHo3fKsHiLAGLvU EuWxcds5EicWReSvWISUQjlAHgQoOK1DWGFYRgyg7orSJ22Nl28EBDbZjg6WT3NWYuOD WC5PfYdoQ9RSmqirvUHfP1gJ29eHvZeD639XBl29X8DK6k8KoBfuhjsnugi3ozFGMZqB CbJGBCMfiQ3dFyRcN82F4YN1b66vrc+EdT8SeBTmWV9ek8SamNxtUPPhtJQfQNuV/Uov qTkA== X-Gm-Message-State: APjAAAXUHpDr/kwja7knkRpi/SiNEKFSQses9x/oneMXpNuArkBJVQPk MG1T6F92zsgkGJRBhAPZy6WCSiU= X-Google-Smtp-Source: APXvYqwUNEeJWsS6UGgq2Z5iPk4UQtKevtuB4yDz/3uQyyZ+ZL+6HDEcc5Llvk2oRpDxoUWemIFU8A== X-Received: by 2002:a17:90b:24c:: with SMTP id fz12mr1172384pjb.51.1573016914788; Tue, 05 Nov 2019 21:08:34 -0800 (PST) Original-Received: from Pankajs-MacBook-Pro.local ([45.251.50.204]) by smtp.gmail.com with ESMTPSA id o7sm1300741pjo.7.2019.11.05.21.08.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Nov 2019 21:08:34 -0800 (PST) Original-Received: by Pankajs-MacBook-Pro.local (Postfix, from userid 501) id 8603A203D8E7B6; Wed, 6 Nov 2019 10:38:30 +0530 (IST) In-Reply-To: (Stefan Monnier's message of "Tue, 05 Nov 2019 16:20:00 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42a X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121805 Archived-At: > 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