We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfc36b commit 0eb240bCopy full SHA for 0eb240b
lisp/ess-inf.el
@@ -605,6 +605,11 @@ process-less buffer because it was created with
605
(nconc
606
(list "STATATERM=emacs"
607
(format "PAGER=%s" inferior-ess-pager))
608
+ ;; This lets R code know whether Emacs was running with a
609
+ ;; light or dark background at startup time
610
+ (let ((bg-mode (frame-parameter nil 'background-mode)))
611
+ (when (memq bg-mode '(light dark))
612
+ (list (format "ESS_BACKGROUND_MODE=%s" (symbol-name bg-mode)))))
613
process-environment))
614
(tramp-remote-process-environment
615
(nconc ;; it contains a pager already, so append
0 commit comments