unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* foreground and background for (setq show-paren-style 'parenthesis)
@ 2021-01-01 17:09 michael-franzese
  2021-01-01 18:20 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: michael-franzese @ 2021-01-01 17:09 UTC (permalink / raw)
  To: Help Gnu Emacs

Have put the following code, yet the foreground and background are
not being set as defined.

  (setq show-paren-style 'parenthesis)
  (set-face-background 'show-paren-match "#FFA600")
  (set-face-foreground 'show-paren-match "#0000A3")






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: foreground and background for (setq show-paren-style 'parenthesis)
  2021-01-01 17:09 foreground and background for (setq show-paren-style 'parenthesis) michael-franzese
@ 2021-01-01 18:20 ` Eli Zaretskii
  2021-01-01 18:34   ` michael-franzese
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2021-01-01 18:20 UTC (permalink / raw)
  To: help-gnu-emacs

> From: michael-franzese@gmx.com
> Date: Fri, 1 Jan 2021 18:09:08 +0100
> 
> Have put the following code, yet the foreground and background are
> not being set as defined.
> 
>   (setq show-paren-style 'parenthesis)
>   (set-face-background 'show-paren-match "#FFA600")
>   (set-face-foreground 'show-paren-match "#0000A3")

If you do this before loading paren.el, then the face show-paren-match
is not yet defined, I think.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: foreground and background for (setq show-paren-style 'parenthesis)
  2021-01-01 18:20 ` Eli Zaretskii
@ 2021-01-01 18:34   ` michael-franzese
  2021-01-01 18:43     ` tomas
  0 siblings, 1 reply; 7+ messages in thread
From: michael-franzese @ 2021-01-01 18:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

I have done (require 'paren) before defining my functions.  It is working
for (setq show-paren-style 'parenthesis), but not when using
(setq show-paren-style 'expression).

> Sent: Friday, January 01, 2021 at 11:50 PM
> From: "Eli Zaretskii" <eliz@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: foreground and background for (setq show-paren-style 'parenthesis)
>
> > From: michael-franzese@gmx.com
> > Date: Fri, 1 Jan 2021 18:09:08 +0100
> >
> > Have put the following code, yet the foreground and background are
> > not being set as defined.
> >
> >   (setq show-paren-style 'parenthesis)
> >   (set-face-background 'show-paren-match "#FFA600")
> >   (set-face-foreground 'show-paren-match "#0000A3")
>
> If you do this before loading paren.el, then the face show-paren-match
> is not yet defined, I think.
>
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: foreground and background for (setq show-paren-style 'parenthesis)
  2021-01-01 18:34   ` michael-franzese
@ 2021-01-01 18:43     ` tomas
  2021-01-01 19:16       ` Drew Adams
  2021-01-01 20:41       ` Eli Zaretskii
  0 siblings, 2 replies; 7+ messages in thread
From: tomas @ 2021-01-01 18:43 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

On Fri, Jan 01, 2021 at 07:34:59PM +0100, michael-franzese@gmx.com wrote:
> I have done (require 'paren) before defining my functions.  It is working
> for (setq show-paren-style 'parenthesis), but not when using
> (setq show-paren-style 'expression).

[...]

There is a face `show-paren-match-expression': most probably you want to
tweak that one.

How did I find out? Well, I set show-paren-style to 'expression, set
point to an opening parenthesis and then did a `describe-face'.

Cheers
 - t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: foreground and background for (setq show-paren-style 'parenthesis)
  2021-01-01 18:43     ` tomas
@ 2021-01-01 19:16       ` Drew Adams
  2021-01-01 20:41       ` Eli Zaretskii
  1 sibling, 0 replies; 7+ messages in thread
From: Drew Adams @ 2021-01-01 19:16 UTC (permalink / raw)
  To: tomas, help-gnu-emacs

> There is a face `show-paren-match-expression': most probably you want to
> tweak that one.
> 
> How did I find out? Well, I set show-paren-style to 'expression, set
> point to an opening parenthesis and then did a `describe-face'.

This.

I'd also suggest that users use `M-x customize-face'.
That's what it's for.  It can help avoid some doubts,
mistakes, questions, etc.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: foreground and background for (setq show-paren-style 'parenthesis)
  2021-01-01 18:43     ` tomas
  2021-01-01 19:16       ` Drew Adams
@ 2021-01-01 20:41       ` Eli Zaretskii
  2021-01-01 21:56         ` tomas
  1 sibling, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2021-01-01 20:41 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 1 Jan 2021 19:43:11 +0100
> From: <tomas@tuxteam.de>
> 
> There is a face `show-paren-match-expression': most probably you want to
> tweak that one.
> 
> How did I find out? Well, I set show-paren-style to 'expression, set
> point to an opening parenthesis and then did a `describe-face'.

And I found that out by reading the code of paren.el.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: foreground and background for (setq show-paren-style 'parenthesis)
  2021-01-01 20:41       ` Eli Zaretskii
@ 2021-01-01 21:56         ` tomas
  0 siblings, 0 replies; 7+ messages in thread
From: tomas @ 2021-01-01 21:56 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

On Fri, Jan 01, 2021 at 10:41:15PM +0200, Eli Zaretskii wrote:
> > Date: Fri, 1 Jan 2021 19:43:11 +0100
> > From: <tomas@tuxteam.de>
> > 
> > There is a face `show-paren-match-expression': most probably you want to
> > tweak that one.
> > 
> > How did I find out? Well, I set show-paren-style to 'expression, set
> > point to an opening parenthesis and then did a `describe-face'.
> 
> And I found that out by reading the code of paren.el.

This, of course, is the Royal Road™ :-)

Cheers
 - t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-01 21:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-01 17:09 foreground and background for (setq show-paren-style 'parenthesis) michael-franzese
2021-01-01 18:20 ` Eli Zaretskii
2021-01-01 18:34   ` michael-franzese
2021-01-01 18:43     ` tomas
2021-01-01 19:16       ` Drew Adams
2021-01-01 20:41       ` Eli Zaretskii
2021-01-01 21:56         ` tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).