From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Newsgroups: gmane.emacs.help Subject: Re: Setting color themes specific to a frame Date: Mon, 20 Feb 2012 10:00:25 +0100 Message-ID: <87ipj1q3zs.fsf@this.that> References: <874numgl99.fsf@this.that> <87wr7iq6ue.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329728449 26675 80.91.229.3 (20 Feb 2012 09:00:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2012 09:00:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 20 10:00:49 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RzP72-0000NM-8w for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Feb 2012 10:00:48 +0100 Original-Received: from localhost ([::1]:43582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzP71-00083I-KE for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Feb 2012 04:00:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzP6r-000837-CV for help-gnu-emacs@gnu.org; Mon, 20 Feb 2012 04:00:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzP6l-00026k-Hv for help-gnu-emacs@gnu.org; Mon, 20 Feb 2012 04:00:37 -0500 Original-Received: from nm22-vm0.bullet.mail.bf1.yahoo.com ([98.139.212.126]:22117) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RzP6l-00026b-86 for help-gnu-emacs@gnu.org; Mon, 20 Feb 2012 04:00:31 -0500 Original-Received: from [98.139.212.152] by nm22.bullet.mail.bf1.yahoo.com with NNFMP; 20 Feb 2012 09:00:30 -0000 Original-Received: from [98.139.211.195] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 20 Feb 2012 09:00:30 -0000 Original-Received: from [127.0.0.1] by smtp204.mail.bf1.yahoo.com with NNFMP; 20 Feb 2012 09:00:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329728430; bh=mkTNVAr5qRsWVwLjA3x9YJdtlWRu3DYrinf98dpuFQ0=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Subject:In-Reply-To:Message-ID:References:Mail-Followup-To:Date:MIME-Version:Content-Type; b=b8aLyE9jnv8MS+GDtfg3Au7PwQJbzHDaifqAqUCM7NhX75B4vCSX+Lw7swKYdqxR0mcCZBZqxt72sPZ45SDx45P4dbwY1mW7bGDIIQsN7Y44CxA8LLCM2fFz8sQU1jI9I0NF1MQheMg/C/TI6ulDRXrXR3mcUVE4J7a6VGWax58= X-Yahoo-Newman-Id: 560799.62176.bm@smtp204.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: E2eQszYVM1lkDTRr.QwbsFjbR.m3r0BE4DT.41LlomydMhZ W37a4_OJXuLrDnMvnnT9jWWPBZiQNmJg24sEFtGudT0cJzDsqIHyLLVpT5e0 yD2zFnxhA4qj.WKfUGkemQYy4rLhC_xVRaYNgQiXQByPJHLWQNXjSF0kMRKO RKk5.UGYYIVp0u0ZO89AN5eE7OrH_kuDZ1f2ykFtI18MrTV3bhgz5BoafHgu CnxkQxg0NqZT7IJl9OH0efEcNFtImgnwhg4nrKYKql462ENM9lJfSb6tsB2V NQNDZzEbka1fSoU7ZpNAOZnsp750U.etyoJ3hqvtjQ8EjeD9psa7HmaDQeKw SCXWYPBSzYi2qQ.e.yStMgndFYu_d.MneZeZeq6OI.dXMGF_Q_GO0ylnCjK. eHktunjPaoqfSY9x..Wb1twSgWA-- X-Yahoo-SMTP: Fed9kveswBC.fi0EvcUg6UnufDS8 Original-Received: from earth.home (adam_w67@81.218.92.210 with plain) by smtp204.mail.bf1.yahoo.com with SMTP; 20 Feb 2012 01:00:29 -0800 PST In-Reply-To: <87wr7iq6ue.fsf@googlemail.com> (Thorsten's message of "Mon, 20 Feb 2012 08:52:57 +0100") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.139.212.126 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:83809 Archived-At: Thorsten writes: Hi Thorsten, > Adam writes: > >> I am using emacs 24, and really enjoy the new color theme feature. I >> have one little issue, though. I am using one emacs daemon instance, >> and lots of instances. Some using X11-Frames, some on plain terminals. >> Is there any method to get the color theme just enabled on X11-frames, >> but fall back to the default color theme on terminals - or, more >> general - is there a method to set a color theme only for one specific >> frame, without affecting the other frames? > > I just had a similar problem, and solved it with some help from this > newsgroup: > > I use the same setup like you - one daemon an lots of instances on plain > terminals and X, and use the following code to have different colors on > X: > > ,------------------------------------------------------------------- > | (defun tj-set-window-type-dependend-emacsclient-colors () > | "Sets emacsclient colors for X. > | Background-color is set to black and foreground-color to wheat for > | emacsclient on X" > | (if (display-graphic-p) > | (progn > | (set-background-color "black") > | (set-foreground-color "wheat")))) > | > | (add-hook 'server-visit-hook > | 'tj-set-window-type-dependend-emacsclient-colors) > `------------------------------------------------------------------- > > Instead of setting background-colors you might be able to change the > color-theme? This does not work here. This does not overwrite my color theme settings. BTW. changing the variables which store my color theme properties does not work. Emacs's load-theme, which is called in my init.el, examines the theme variable and sets all the properties globally. I need a method to make load-theme set the theme properties frame-local, so I can call it in my after-make-frame-functions.