Re: [ESS] emacs theme for polymode with noweb files

2023-12-05 Thread Brett Presnell via ESS-help


I've been using the zenburn theme for quit a while now.  I am red-green
colorblind though, so my view of these things is always compromised.

https://github.com/bbatsov/zenburn-emacs

LaurentEss via ESS-help  writes:

> [External Email]
>
> Dear ESS-list,
>
>   I tried many dark color themes to do literate programming with
> polymode (.rnw file) but there are always some drawbacks : the color of
> the beginning and the end of the chunks (<<>>= and @) are
> unreadable, the color of the text when I want to see the available
> buffers (C-x C-b) is unreadable, etc...
>
> May you please tell me the name of a color theme which works fine with
> polymode for noweb files ?
>
> I tried to find an answer on the web without success.
>
> Thank you
>
> Best regards
>
> Laurent
>
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] emacs theme for polymode with noweb files

2023-12-05 Thread Tyler Smith via ESS-help
Hi Johannes,

Tibbles add an extra layer of complexity, in that they apply their own colors 
to output, which doesn't necessarily follow the Emacs theme. I turn them off 
with:

```
options(crayon.enabled = FALSE)
```

See more discussion here:

https://github.com/tidyverse/tibble/issues/395

Tyler

-- 
plantarum.ca

On Tue, Dec 5, 2023, at 4:33 AM, Hüsing, Johannes via ESS-help wrote:
> Thanks, Tyler, for the directions, which made me burn office hours 
> while looking fort he optimal font face.
>
> One of these faces seems to be assigned to documenting the contents of 
> a tidyverse object. Via the link you can find the face used for 
> printing a data frame vs printing a tibble. The latter one has issues 
> with foreground and background being to similar, as you can see in 
> https://i.imgur.com/Q2lez8e.png (sorry if i am not aware of the custom 
> method of posting images).
>
> Following your directions of
>> Put the cursor over the offending characters, and call the function `M-x 
>> describe-face`.
> I get the following:
>
> Documentation:
> Basic default face.
>
> Defined in ‘faces.el’.
>
>
>Family: Consolas
>   Foundry: outline
> Width: normal
>Height: 102
>Weight: normal
> Slant: normal
>Foreground: #f8f8f2
> DistantForeground: unspecified
>Background: #282a36
> Underline: nil
>  Overline: nil
>Strike-through: nil
>   Box: nil
>   Inverse: nil
>   Stipple: nil
>  Font: # -outline-Consolas-normal-normal-normal-mono-17-*-*-*-c-*-iso8859-1>
>   Fontset: 
> -outline-Consolas-normal-normal-normal-mono-17-*-*-*-c-*-fontset-auto1
>Extend: nil
>   Inherit: nil
>
> Clearly, the offending character is a lot darker than it yould be if it 
> used the foreground of the basic default face.
> Is ESS using the "DistantForeground" and interpreting "unspecified" as 
> "black"?
>
> Is there a proper way to let ESS format outputs as default foreground 
> on default background, regardless if it's printing from tidyverse 
> objects or base R objects?
>
> Otherwise, the dracula theme works fine with me. Even the 
> auto-dim-other-buffers-mode works like a charm for both light and dark 
> themes. It's just that the workflow suggested here does not work as 
> nicely as I hoped it to do.
>
> Cheers
>
> Johannes
>
>
> Johannes Hüsing
> Epidemiologie
>
>
> Landeskrebsregister NRW gGmbH
> Gesundheitscampus 10
> 44801 Bochum
> T 0234 54509-216
> F 0234 54509-499
> johannes.hues...@krebsregister.nrw.de
> www.landeskrebsregister.nrw.de
>
>
> 1. Landesqualitätskonferenz jetzt anmelden unter Qualitätskonferenzen 
> 
> Newsletter LKR NRW jetzt anmelden unter Newsletter 
> 
> Geschäftsführer
> Dr. Andres Schützendübel
> Vorsitzender der Gesellschafterversammlung
> Staatssekretär Dr. Edmund Heller
> Sitz der Gesellschaft
> Bochum
> Registergericht
> Amtsgericht Bochum
> HRB 17715
>
> HINWEIS: Diese Nachricht ist nur für den Adressaten bestimmt. Es ist 
> nicht erlaubt, diese Nachricht zu kopieren oder Dritten zugänglich zu 
> machen. Sollten Sie irrtümlich diese Nachricht erhalten haben, bitte 
> ich um Ihre Mitteilung per E-Mail oder unter der oben angegebenen 
> Telefonnummer.
>
>
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] emacs theme for polymode with noweb files

2023-12-05 Thread LaurentEss via ESS-help
Yes it is nice but the text is still unreadable in the helm-buffers-list 
(C-x C-b), I will search to change the colors.


Le 04/12/2023 à 15:23, James W. MacDonald a écrit :

I personally like Dracula mode, although Nord seems pretty nice as well.

-Original Message-
From: ESS-help  On Behalf Of LaurentEss via 
ESS-help
Sent: Sunday, December 3, 2023 5:48 PM
To: ess-help@r-project.org
Subject: [ESS] emacs theme for polymode with noweb files

Dear ESS-list,

    I tried many dark color themes to do literate programming with polymode (.rnw file) 
but there are always some drawbacks : the color of the beginning and the end of the chunks 
(<<>>= and @) are unreadable, the color of the text when I want to see the 
available buffers (C-x C-b) is unreadable, etc...

May you please tell me the name of a color theme which works fine with polymode 
for noweb files ?

I tried to find an answer on the web without success.

Thank you

Best regards

Laurent

__
ESS-help@r-project.org mailing list
https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/ess-help__;!!K-Hz7m0Vt54!gWi-4Lf2EFA200jJeoyljWW_zLsT8fkksrjlPXcyVPFURleqdeRFHJ_N-cul_9WQjYfsrmp8F4D7fPjzwNhhnyDud3g$


__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] emacs theme for polymode with noweb files

2023-12-05 Thread Hüsing , Johannes via ESS-help
Thanks, Tyler, for the directions, which made me burn office hours while 
looking fort he optimal font face.

One of these faces seems to be assigned to documenting the contents of a 
tidyverse object. Via the link you can find the face used for printing a data 
frame vs printing a tibble. The latter one has issues with foreground and 
background being to similar, as you can see in https://i.imgur.com/Q2lez8e.png 
(sorry if i am not aware of the custom method of posting images).

Following your directions of
> Put the cursor over the offending characters, and call the function `M-x 
> describe-face`.
I get the following:

Documentation:
Basic default face.

Defined in ‘faces.el’.


   Family: Consolas
  Foundry: outline
Width: normal
   Height: 102
   Weight: normal
Slant: normal
   Foreground: #f8f8f2
DistantForeground: unspecified
   Background: #282a36
Underline: nil
 Overline: nil
   Strike-through: nil
  Box: nil
  Inverse: nil
  Stipple: nil
 Font: #
  Fontset: 
-outline-Consolas-normal-normal-normal-mono-17-*-*-*-c-*-fontset-auto1
   Extend: nil
  Inherit: nil

Clearly, the offending character is a lot darker than it yould be if it used 
the foreground of the basic default face.
Is ESS using the "DistantForeground" and interpreting "unspecified" as "black"?

Is there a proper way to let ESS format outputs as default foreground on 
default background, regardless if it's printing from tidyverse objects or base 
R objects?

Otherwise, the dracula theme works fine with me. Even the 
auto-dim-other-buffers-mode works like a charm for both light and dark themes. 
It's just that the workflow suggested here does not work as nicely as I hoped 
it to do.

Cheers

Johannes


Johannes Hüsing
Epidemiologie


Landeskrebsregister NRW gGmbH
Gesundheitscampus 10
44801 Bochum
T 0234 54509-216
F 0234 54509-499
johannes.hues...@krebsregister.nrw.de
www.landeskrebsregister.nrw.de


1. Landesqualitätskonferenz jetzt anmelden unter Qualitätskonferenzen 

Newsletter LKR NRW jetzt anmelden unter Newsletter 

Geschäftsführer
Dr. Andres Schützendübel
Vorsitzender der Gesellschafterversammlung
Staatssekretär Dr. Edmund Heller
Sitz der Gesellschaft
Bochum
Registergericht
Amtsgericht Bochum
HRB 17715

HINWEIS: Diese Nachricht ist nur für den Adressaten bestimmt. Es ist nicht 
erlaubt, diese Nachricht zu kopieren oder Dritten zugänglich zu machen. Sollten 
Sie irrtümlich diese Nachricht erhalten haben, bitte ich um Ihre Mitteilung per 
E-Mail oder unter der oben angegebenen Telefonnummer.


__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help