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: Enable/disable theme while using desktop-save-mode Date: Tue, 05 Nov 2019 22:07:43 +0530 Organization: Code is Great! Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="20374"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 05 17:39:20 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 1iS1rQ-00058n-BC for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2019 17:39:16 +0100 Original-Received: from localhost ([::1]:46188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS1rP-0005k9-7Y for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2019 11:39:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59465) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS1q9-0004Z1-5R for help-gnu-emacs@gnu.org; Tue, 05 Nov 2019 11:37:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iS1q7-00073L-3K for help-gnu-emacs@gnu.org; Tue, 05 Nov 2019 11:37:56 -0500 Original-Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:46518) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iS1q1-000725-Jy for help-gnu-emacs@gnu.org; Tue, 05 Nov 2019 11:37:51 -0500 Original-Received: by mail-pf1-x435.google.com with SMTP id 193so14626169pfc.13 for ; Tue, 05 Nov 2019 08:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:organization:date:message-id:user-agent :mime-version; bh=WMVRiKl1qPm1kXEnJDwHegdEvcggLZUzkjRURNXwFgU=; b=TW01c1VSvgdABAuSBobDfbZGG4ND48HGmVLXMreirM7UeIthsu4XGDJUYlDdsGLsa8 jFv1/d52+6K5GK141F27JmeUQrjcFn8fGjQm82Pxt+WZuZGaUaVTSHprPw3UonkrbUzh 3X0gvfjkd/iBN8+kIxnf03BI4gJdYB50Plka2KQsD4O+NWNZEGeaGgvLD2aOcmB51gTu OYwnbxmYmiZllkX6fuQp7m+Y7UXgO02+2WlE452AkPVw9RcsdYyU5vkgq46od3IUqf+e TnTGGKz/SEZ9hBGiFOD6dYOVmmqS4nqi4apvxxVF1SSk71x+Iw+/DNVu2qxFDqK4L0yX LUiw== 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:date:message-id :user-agent:mime-version; bh=WMVRiKl1qPm1kXEnJDwHegdEvcggLZUzkjRURNXwFgU=; b=HlcqQrab3qjesw6xN+htr3OzaSqhpGzLZ52IItvr6/6h26vrSeNtLVt/pWulfNu3DW YfdmMzngTvCckwpZ683D3B5a1yF5Bc9QM3lcG5yEhesj9jol6o4AGEXP50oKkgEkJNnj GOxkJBeuOmdSdHaeWsmzRN/Jhnv0p7cX+3tV7f+3OJs5vwjXRUvWmWZHScUH+49KJzDd 9fSzPVLrITmiInwQsyrGdUYU97IQPFHMMF/3GRDsFU4bqX2SrWpgXWUzyTDKA9wUfDCu 0q2SRLGJ06/3SJz4O7sVZEh136bABcR173M/uT003NUrMoKtZqtjaKlW9acjckJmsQfC Xxug== X-Gm-Message-State: APjAAAXZetpn83pGEKMQHVUqKqtF5N4cAq2LVgF4isNo8LBphAlr9nWp bZfXTYKIsvLINXEeQdCOa7ujiHM= X-Google-Smtp-Source: APXvYqxCXyP+xhYS/SwavVcFt/JwMv32IXP9iw4PynMFsvvtNGV3w5e5Y96/N6A3z5nGzFKN1KGasg== X-Received: by 2002:a63:6cf:: with SMTP id 198mr37274409pgg.259.1572971867575; Tue, 05 Nov 2019 08:37:47 -0800 (PST) Original-Received: from Pankajs-MacBook-Pro.local ([49.36.134.254]) by smtp.gmail.com with ESMTPSA id y3sm8641960pgl.78.2019.11.05.08.37.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Nov 2019 08:37:46 -0800 (PST) Original-Received: by Pankajs-MacBook-Pro.local (Postfix, from userid 501) id CC65D203D84874; Tue, 5 Nov 2019 22:07:43 +0530 (IST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::435 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:121795 Archived-At: Hi, I have (desktop-save-mode 1) and then enabled one dark mode theme. After a few days, now I want to disable the theme. Even after I comment out the theme related code from init.el, some of the theme settings don't go away. This is because of the way themes are thought out in Emacs. In Emacs, a theme is not just one setting. It is a collection of settings that we configure. This allows us to set multiple themes in sequence. Later settings will prevail finally. Now, even when I disable all themes, the settings are still saved in desktop session. Restarting Emacs, loads those settings from saved desktop. This is where I am stuck. Is there a way to remove all those settings which were configured by the theme previously set? Regards, -- Pankaj Jangid