Charleston
Charleston

Reputation: 178

Emacs: Have a completely different background-color in ansi-term

I'm normally using a light background color in all my Emacs faces. But I'm used to dark backgrounds in a terminal. Therefore I wanted to set the background color of ansi-term to black. However when I do this only the part where text has already been written to is colored correctly, the rest of the background is still light as in other faces. I'm looking for a way to completely set the background color of ansi-term to black. An example: https://i.sstatic.net/F3pra.png

Upvotes: 5

Views: 721

Answers (2)

lawlist
lawlist

Reputation: 13447

Default face / font, unless another definition overrides it:

(set-face-attribute 'default nil :background "black" :foreground "white"
    :font "Courier" :height 180)

See also: Adjusting term faces in the new Emacs 24.3

Example
(source: lawlist.com)

Upvotes: 1

juanleon
juanleon

Reputation: 9370

Check color-theme-buffer-local. I think this is what you need.

Upvotes: 1

Related Questions