문제

To avoid the white background, I changed the default emacs background color to "dark gray" -- it's perfect for working in the GUI at night . . . however, emacs is also my default editor for terminals, and is basically unreadable with the new background color.

Is there a way I can have the background color for the GUI, and then all default settings (black background and default syntax highlighting) for when emacs is launched in the terminal to edit PKGBUILDS and other files?

Thanks! I've tried searching the web to no avail . . .

도움이 되었습니까?

해결책

You could add something like the following to your init.el.

(when (display-graphic-p)
  (set-background-color "darkgrey"))

It will not change the background color if run in terminal.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top