From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glyn Millington Newsgroups: gmane.emacs.help Subject: Re: a dark theme? Date: Thu, 17 Jul 2014 07:38:16 +0100 Organization: Utterly lacking Message-ID: <87oawomqw7.fsf@nowhere.org> References: <87a989f3io.fsf@debian.uxu> <87egxksssf.fsf@skimble.plus.com> Reply-To: glyn.millington@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1405580691 22723 80.91.229.3 (17 Jul 2014 07:04:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2014 07:04:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 17 09:04:44 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 1X7fkC-00007d-5A for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jul 2014 09:04:44 +0200 Original-Received: from localhost ([::1]:42593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7fkB-0006IS-NK for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jul 2014 03:04:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7fjv-0006IM-67 for help-gnu-emacs@gnu.org; Thu, 17 Jul 2014 03:04:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7fjp-0003RC-3E for help-gnu-emacs@gnu.org; Thu, 17 Jul 2014 03:04:27 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:58344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7fjo-0003R6-SX for help-gnu-emacs@gnu.org; Thu, 17 Jul 2014 03:04:21 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X7fjn-0008NS-2x for help-gnu-emacs@gnu.org; Thu, 17 Jul 2014 09:04:19 +0200 Original-Received: from cust25-dsl91-135-3.idnet.net ([91.135.3.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2014 09:04:19 +0200 Original-Received: from glyn.millington by cust25-dsl91-135-3.idnet.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2014 09:04:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 71 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cust25-dsl91-135-3.idnet.net X-Liturgical-Date: Weekday: Thursday of the Fifteenth Week of Ordinary Time, A.D. 2014 X-Shakespeare: "The dread of something after death, The undiscovered country, from whose bourn No traveller returns." -- Hamlet, III.1 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:9ptHNIW8MX9Vz/oeH3I970DAnFI= 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:98714 Archived-At: Sharon Kimble writes: > Emanuel Berg writes: > >> Sharon Kimble writes: >> >>> I'm hoping that someone can advise me, I'm looking >>> for a theme to use with emacs and gnus which has a >>> dark background, but also allows me to read all the >>> text in a gmail which currently appears as >>> nearly-white on a slightly-grey background. >> >> "All the text in a gmail"? >> >> To get a default bright-on-dark "theme" (which I highly >> recommend to reduce eye strain) simply evaluate this: >> >> (set-face-attribute 'default nil >> :foreground "cyan" >> :background "black" >> :bold nil) >> >> Change "cyan" to whatever fits you the best. I use a >> Linux VT/tty/"the console" and you probably use X. That >> means I can't help you with the colors, but try >> "green", "blue", etc. See if you can find something you >> like; if not, dig deeper. Probably you don't won't bold >> for ordinary text, save that option for faces that >> highlight stuff (headers, keywords, and so on). >> >> If you run into some text that you don't like the color >> of, use this defun to identify the face: >> >> (defun what-face (pos) >> (interactive "d") >> (let ((face (or (get-char-property (point) 'read-face-name) >> (get-char-property (point) 'face)))) >> (if face (message " Face: %s" face) >> (message " No face at %d." pos) ))) > > Thanks for this Emanuel, I've doctored my init.el and put the above in > it, at the end, which is where I always put temporary/testing code, > unless it goes into my setup-testing.el. I then ran it when my mouse was > on the problem text in a gmail, and this is what it found - > ╭──── > │Face: ((:foreground #5e5e5e) (:foreground #5e5e5e) (:background #727272)) > ╰──── > > Perhaps I'm misunderstanding you, but how can I customise that? Its got > no name or handle that I can hook on to! This looks like rather hard work! If you move the cursor to the text whose face you would like to customize and do M-x customize-face, the emacs offers you the face at point to be customized eg. Customize face (default `gnus-cite-2'): Just hit return and you will be taken into the Customize menu for that face. Or use that face name for the magic you want to work in init.el Emacs 24.3.1 here on Linux atb Glyn