Changing the background color of the lower-ess mode in Emacs

Since I work a lot with Latex and Sweave / knitr, I wondered if it was possible to change the background color of various modes in Emacs, for example. change the background color in bottom-ess-mode (R) or ess-mode (R-Scripts) to black. The following code works first. But as soon as I switch from ess-mode to other buffers / modes, the color settings apply.

(defun pk-black () (set-background-color "black") (set-foreground-color "white")) (add-hook 'ess-mode-hook 'pk-black) 

Is there a way to change the background color only for ess-mode / inferior-ess-mode in Emacs?

+6
source share
1 answer

Perhaps useful: BufferBackgroundColor

+2
source

Source: https://habr.com/ru/post/915191/


All Articles