From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Svend Sorensen Newsgroups: gmane.emacs.help Subject: Re: themes not behaving themselves. Date: Wed, 30 Apr 2014 11:39:37 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398883544 15366 80.91.229.3 (30 Apr 2014 18:45:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2014 18:45:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 30 20:45:38 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WfZVi-00081g-An for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 20:45:38 +0200 Original-Received: from localhost ([::1]:58568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfZVh-0006Uq-Nm for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 14:45:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfZVM-0006U3-CC for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 14:45:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfZVC-0002DJ-FK for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 14:45:16 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfZVC-0002Bq-9i for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 14:45:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WfZVA-0007D6-7D for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 20:45:04 +0200 Original-Received: from 64.124.61.215 ([64.124.61.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Apr 2014 20:45:04 +0200 Original-Received: from svend by 64.124.61.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Apr 2014 20:45:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 64.124.61.215 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (darwin) Cancel-Lock: sha1:zhxmmRE8TcApBofcNK9kmHZQdbw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97492 Archived-At: despen@verizon.net (Dan.Espen) writes: > Sharon Kimble writes: > > After using one theme, the next them may or may not replace all the > changes it has made. > > As far as I know, restarting Emacs is your only choice. If you run disable-theme, it will undo the changes the theme made without restarting. I have the following in may Emacs config to automatically disable all themes when loading a new theme: (defun disable-all-themes () "Disable all active themes." (dolist (i custom-enabled-themes) (disable-theme i))) (defadvice load-theme (before disable-themes-first activate) (disable-all-themes)) I got this from the following SO page. https://stackoverflow.com/questions/22866733/emacs-disable-theme-after-loading-a-different-one-themes-conflict?noredirect=1#comment34887344_22866733