From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: how to fix too-dark blue keywords with black background Date: Fri, 10 Jun 2016 16:04:53 +0200 Message-ID: <86ziqtp2be.fsf@student.uu.se> References: <02f2cd61-f8a0-4ecd-b8ed-b4a31124f2bf@googlegroups.com> <0e8eb14f-14b5-4348-aba5-dacaca1a70ec@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1465567566 16672 80.91.229.3 (10 Jun 2016 14:06:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2016 14:06:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 10 16:06:01 2016 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 1bBN4R-0003AY-5E for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jun 2016 16:05:59 +0200 Original-Received: from localhost ([::1]:41294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBN4Q-0004r2-8a for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jun 2016 10:05:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBN3f-0004kD-Rt for help-gnu-emacs@gnu.org; Fri, 10 Jun 2016 10:05:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBN3b-0000bb-Qf for help-gnu-emacs@gnu.org; Fri, 10 Jun 2016 10:05:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBN3b-0000Zu-JN for help-gnu-emacs@gnu.org; Fri, 10 Jun 2016 10:05:07 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bBN3X-0002RW-U9 for help-gnu-emacs@gnu.org; Fri, 10 Jun 2016 16:05:03 +0200 Original-Received: from c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se ([85.230.225.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2016 16:05:03 +0200 Original-Received: from embe8573 by c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2016 16:05:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:djeIRzi+pmn7BmoHW1loPThY9XE= 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.21 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" Xref: news.gmane.org gmane.emacs.help:110409 Archived-At: barrchris@gmail.com writes: > I only need to change one color - is there > a simple way to do this in Putty or in emacs? Place point at the text which has the color, then use this function (defun what-face (pos) (interactive "d") (let((face (or (get-char-property pos 'face) (get-char-property pos 'read-cf-name) ))) (message " Face: %s" (or face "(no face!)")) )) to find out what face it is. If it is, say, `w3m-image-anchor', use this to set it to white foreground, green background, using the bold (or bright) version of white (the fifth argument being t). (modify-face 'w3m-image-anchor "white" "green" nil t) Eval these for cool effects with the Mode line: (modify-face 'mode-line "white" "blue" nil t) (modify-face 'mode-line-inactive "white" "red" nil nil) Most often you don't want a background, so set it to nil: (modify-face 'gnus-group-news-6 "blue" nil nil t) And so on. Dig deep... If you want to change the color itself, i.e. what RGB composition it means to be "white" (and green, blue, red, etc.) I do this in the Linux VTs and in xterm [1] - in PuTTY, a Windows ssh/telnet client, I suspect it is still possible. [1] http://user.it.uu.se/~embe8573/blogomatic/emacs/colors.html -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 48 Blogomatic articles -