[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to fix too-dark blue keywords with black background
From: |
tomas |
Subject: |
Re: how to fix too-dark blue keywords with black background |
Date: |
Fri, 10 Jun 2016 18:21:08 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----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-----