How to make emacs console mode inherit shell colors

I just updated my Ubuntu laptop from 12.04 to 12.10.

On emacs -nw , emacs -nw launch opened emacs in terminal mode using the terminal's color scheme (background, foreground, ..., especially it retained my transparent terminal background).

Now, at 12.10, running the same command causes emacs opened in the terminal to have a different color scheme (with a gray background). How can I tell emacs about saving the color scheme of the terminal?

+4
source share
2 answers

Thanks to the comment https://stackoverflow.com/users/774691/john-k-doe, I finally understood why my emacs -nw appeared like this.

I edited the font size (for the default face) in the emacs window (started without the -nw option), and then saved this new parameter using the menu item Options -> Save Options . This action changed my ~/.xemacs/custom.el , loaded by default into my ~/.emacs file. The modification included background and front properties for the face by default with the value used in the "Window" mode.

To solve this problem, I simply deleted this user entry from the custom.el file.

+1
source

I am not sure there is a reasonable answer to this. After all, the color theme of the gnome terminal contains three β€œcolors”: (1) Text, (2) Background (3) Bold.

How Emacs works, every bit of text gets a "face." A color theme is a mapping of faces into colors. There are more than three persons ...

0
source

All Articles