Re: [ESS] emacs theme for polymode with noweb files
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
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
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
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
Re: [ESS] emacs theme for polymode with noweb files
Hi Tyler, Thank you for the explanations. I well understood what you mean and I agree. But I did not success to apply your approach. I disable hl-line-mode with the command with (global-hl-line-mode nil) but M-x describe-face doesn't work. Searching on the net, I found the commande C-u C-x = and I was able to put the red color for << >>= which is a good beginning. But the @ becomes red also, and I would like to put it in another color. I will investigate to understand how the face customization works. Thank you for the pointer. Le 04/12/2023 à 16:25, Tyler Smith via ESS-help a écrit : Hi, I use cyberpunk, which is pretty usable as-is. However, more important, I think, than the actual theme you use, is being able to tweak the styling of individual faces. Once you pick a theme that is reasonably close to what you want, if there are bits that you don't like, you can easily change them. Put the cursor over the offending characters, and call the function `M-x describe-face`. You'll be prompted for the face you want to see, and the default is the face of the character under point[1] (the cursor). The window that opens includes a link to `customize this face` at the top. Click that, and you'll get the interface for changing the style. The next window that opens will show any styles that are applied to the face in question. You can change that to whatever you like, and apply it to the current session with `C-c C-c`. To save it permanently, type `C-c C-s`. Note that you don't see all the possible attributes by default, only the ones that have been changed. To see the other options, click the `show all attributes` button. Even with good themes, I find there are differences among displays (i.e., my laptop screen and my monitor) that benefit from adjusting a few of the colour choices. Good luck! Tyler [1] Note that if you use `hl-line-mode`, you should turn it off before doing this, otherwise that's the face you'll be offered. If you don't use `hl-line-mode`, ignore this. __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] emacs theme for polymode with noweb files
Hi, I use cyberpunk, which is pretty usable as-is. However, more important, I think, than the actual theme you use, is being able to tweak the styling of individual faces. Once you pick a theme that is reasonably close to what you want, if there are bits that you don't like, you can easily change them. Put the cursor over the offending characters, and call the function `M-x describe-face`. You'll be prompted for the face you want to see, and the default is the face of the character under point[1] (the cursor). The window that opens includes a link to `customize this face` at the top. Click that, and you'll get the interface for changing the style. The next window that opens will show any styles that are applied to the face in question. You can change that to whatever you like, and apply it to the current session with `C-c C-c`. To save it permanently, type `C-c C-s`. Note that you don't see all the possible attributes by default, only the ones that have been changed. To see the other options, click the `show all attributes` button. Even with good themes, I find there are differences among displays (i.e., my laptop screen and my monitor) that benefit from adjusting a few of the colour choices. Good luck! Tyler [1] Note that if you use `hl-line-mode`, you should turn it off before doing this, otherwise that's the face you'll be offered. If you don't use `hl-line-mode`, ignore this. -- plantarum.ca On Sun, Dec 3, 2023, at 5:48 PM, LaurentEss via ESS-help wrote: > 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
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