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?
source share