help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Region selection that keeps syntax highlighting colour


From: Heime
Subject: Re: Region selection that keeps syntax highlighting colour
Date: Wed, 26 Oct 2022 16:17:35 +0000

------- Original Message -------
On Wednesday, October 26th, 2022 at 8:16 AM, Emanuel Berg <incal@dataswamp.org> 
wrote:


> Daniel Martín wrote:
> 
> > > When I select a region, the colour of the text terns white.
> > > Can one keep the original syntax highlighting colour of
> > > code intact, whilst changing the background colour only?
> > 
> > M-x customize-face region RET
> > 
> > Make sure that the "region" face doesn't have
> > a foreground color.
> 
> 
> The OP isn't suspectible to custom, here
> 
> (set-face-attribute face nil :foreground fg
> :background bg
> :weight bold) )

I have this

(set-face-attribute 'region nil :background "#2E2EFF")





reply via email to

[Prev in Thread] Current Thread [Next in Thread]