[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs and solarized
From: |
William G. Gardella |
Subject: |
Re: Emacs and solarized |
Date: |
Tue, 10 Dec 2013 14:48:11 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Alexis Praga <alexispraga@mailoo.org> writes:
> Update : emacs --daemon does not load the solarized theme but
> emacsclient does.
> If it doesn't, it only needs to be done once with M-x
> color-theme-solarized-dark.
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---