[ESS] emacs theme for polymode with noweb files

Tyler Smith ty|er @end|ng |rom p|@nt@rum@c@
Mon Dec 4 16:25:13 CET 2023


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 using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list