* Region selection that keeps syntax highlighting colour
@ 2022-10-25 23:53 Heime
2022-10-26 1:23 ` Emanuel Berg
2022-10-26 8:00 ` Daniel Martín
0 siblings, 2 replies; 5+ messages in thread
From: Heime @ 2022-10-25 23:53 UTC (permalink / raw)
To: Heime via Users list for the GNU Emacs text editor
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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Region selection that keeps syntax highlighting colour
2022-10-25 23:53 Region selection that keeps syntax highlighting colour Heime
@ 2022-10-26 1:23 ` Emanuel Berg
2022-10-26 8:00 ` Daniel Martín
1 sibling, 0 replies; 5+ messages in thread
From: Emanuel Berg @ 2022-10-26 1:23 UTC (permalink / raw)
To: help-gnu-emacs
Heime 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?
Yes, it's the `region' face, set the foreground to nil then
set the background.
There's something going on ... ?
But just play with it until it looks good!
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Region selection that keeps syntax highlighting colour
2022-10-25 23:53 Region selection that keeps syntax highlighting colour Heime
2022-10-26 1:23 ` Emanuel Berg
@ 2022-10-26 8:00 ` Daniel Martín
2022-10-26 8:16 ` Emanuel Berg
1 sibling, 1 reply; 5+ messages in thread
From: Daniel Martín @ 2022-10-26 8:00 UTC (permalink / raw)
To: Heime; +Cc: Heime via Users list for the GNU Emacs text editor
Heime <heimeborgia@protonmail.com> writes:
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Region selection that keeps syntax highlighting colour
2022-10-26 8:00 ` Daniel Martín
@ 2022-10-26 8:16 ` Emanuel Berg
2022-10-26 16:17 ` Heime
0 siblings, 1 reply; 5+ messages in thread
From: Emanuel Berg @ 2022-10-26 8:16 UTC (permalink / raw)
To: help-gnu-emacs
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) )
HTH
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Region selection that keeps syntax highlighting colour
2022-10-26 8:16 ` Emanuel Berg
@ 2022-10-26 16:17 ` Heime
0 siblings, 0 replies; 5+ messages in thread
From: Heime @ 2022-10-26 16:17 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
------- 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")
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-10-26 16:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-25 23:53 Region selection that keeps syntax highlighting colour Heime
2022-10-26 1:23 ` Emanuel Berg
2022-10-26 8:00 ` Daniel Martín
2022-10-26 8:16 ` Emanuel Berg
2022-10-26 16:17 ` Heime
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.