emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
614 stars 160 forks source link

Set background mode envvar on process startup #1178

Open lionel- opened 2 years ago

lionel- commented 2 years ago

To be used by formatting packages like cli (https://github.com/r-lib/cli/) to select correct colours for the background shade (light or dark) used in Emacs.

cc @gaborcsardi.

vspinu commented 2 years ago

Would it make sense to use a more generic name like R_CLI_BACKGROUND_MODE?

lionel- commented 2 years ago

hmm, this may be less generic? For instance Julia packages could also make use of that envvar.

vspinu commented 2 years ago

Indeed. In fact it would make sense to have this emacs-wide maybe.

vspinu commented 1 year ago

@lionel- can we merge this?