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

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

Re: Emacs and solarized


From: Alexis Praga
Subject: Re: Emacs and solarized
Date: Tue, 10 Dec 2013 16:07:47 +0100
User-agent: Roundcube Webmail

Sometimes color themes (of both the old and new varieties) can't fully
load on --daemon, because --daemon's apparent color depth is that of a
standard TTY (8 colors, 16 counting bold). If the theme attempts to set
things like cursor or mouse color (which cannot be set in a text
console/terminal environment), this will be a particularly obvious breakage.

I started to use something like this:

--8<---------------cut here---------------start------------->8---
(defun wg/setup-themes (frame)
  "Kludge themes, e.g. to get things right on emacsclient."
  (ignore frame)
  (mapcar 'load-theme custom-enabled-themes))


(add-hook 'after-make-frame-functions 'wg/setup-themes)
--8<---------------cut here---------------end--------------->8---

I tried the following :

(defun wg/setup-themes (frame)
    "Kludge themes, e.g. to get things right on emacsclient."
    (ignore frame)
    (color-theme-solarized-dark))

(add-hook 'after-make-frame-functions 'wg/setup-themes)

But to no avail.

Cheers,


---
Alexis Praga
GPG key : 66F9 4BD4 70EC E5D5 2AA4  9097 0673 7CE2 4671 306F





reply via email to

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