From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: how to fix too-dark blue keywords with black background Date: Fri, 10 Jun 2016 18:21:08 +0200 Message-ID: <20160610162108.GA13627@tuxteam.de> References: <02f2cd61-f8a0-4ecd-b8ed-b4a31124f2bf@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1465575725 24620 80.91.229.3 (10 Jun 2016 16:22:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2016 16:22:05 +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 18:22:05 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 1bBPC8-00068b-BT for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jun 2016 18:22:04 +0200 Original-Received: from localhost ([::1]:43256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBPC7-0002R3-EX for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jun 2016 12:22:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBPBN-0002Pi-AB for help-gnu-emacs@gnu.org; Fri, 10 Jun 2016 12:21:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBPBI-0006HY-5U for help-gnu-emacs@gnu.org; Fri, 10 Jun 2016 12:21:17 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:52047 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBPBH-0006HL-VW for help-gnu-emacs@gnu.org; Fri, 10 Jun 2016 12:21:12 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1bBPBE-0003b5-46 for help-gnu-emacs@gnu.org; Fri, 10 Jun 2016 18:21:08 +0200 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 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:110412 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jun 10, 2016 at 07:52:39AM -0700, barrchris@gmail.com wrote: > On Friday, June 3, 2016 at 3:26:48 PM UTC-4, barr...@gmail.com wrote: > > Certain keywords display with an unreadable dark blue, on a black background. > > Like: getopts or echo or source, with emacs mode Shell-script[bash]. > > Other things are too dark in sql-mode: SQL[ansi] > > > > Is it best to change the dark blue in PuTTY settings or in emacs? > > > > It looks like I have a default theme - I see nothing display-related in ~/.emacs.d/init.el or ~/.emacs > > > > I like the dark background, I like the syntax colorizing, it's just these dark-blue colors. > > Thanks, but how can I "use this function" ? > paste it in my .emacs? > > (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!)")) )) That depends. If you just want to use it "once" (i.e. in the current session), just paste it in some throwaway buffer (e.g. *scratch*) and execute the code by placing point at its end and typing C-x C-e (aka CTRL-x CTRL-e). If you want to have it permanently available, you can put it in your .emacs, yes. Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlda6PQACgkQBcgs9XrR2kafjwCeLyt4j5FsUU7dOh8OUQK2WvGQ sWIAni/iad2+EX3ajTzpkDYZ7A9R9IyI =/Nin -----END PGP SIGNATURE-----