help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: themes not behaving themselves.


From: Svend Sorensen
Subject: Re: themes not behaving themselves.
Date: Wed, 30 Apr 2014 11:39:37 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (darwin)

address@hidden (Dan.Espen) writes:

> Sharon Kimble <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]