this post was submitted on 29 Jan 2025
6 points (100.0% liked)

Emacs

2304 readers
46 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS
 

Updates - Formatting, one more small information.

I have been hunting documentation and trying things in my .emacs file for 2 days now..

The type of message that appears at the bottom of the screen, one example is "Save the file ? (y,n,! ...." On my system it is dark blue on black. Also "Modified buffers exist..." dark blue on black - hard to read. What face is that?

Here is what I have tried so far:

(custom-set-faces
  '(mode-line ((t (:foreground "white" :background "blue" :weight bold))))
  '(warning ((t (:foreground "yellow" :weight bold))))
  '(error ((t (:foreground "yellow" :weight bold))))
  '(success ((t (:foreground "yellow" :weight bold))))
  '(default ((t (:foreground "white" :background "black"))))
  '(minibuffer-prompt ((t (:foreground "yellow" :weight bold))))
  '(shadow ((t (:foreground "yellow"))))
  '(completions-common-part ((t (:foreground "yellow"))))
  '(completions-first-difference ((t (:foreground "yellow" :weight bold))))
  '(default ((t (:foreground "white" :background "black"))))
 )

describe-face for another prompt with the same coloring says it is the default face. So I tried changing that from the M-x prompt but that turned my screen white on yellow.

The mode-line line works - my active mode line is white on blue.

Does it matter that I am running emacs in a tty instead of the GUI version?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 2 days ago (5 children)

I asked on #emacs and the consensus (including me) was that it's probably the default face, though I'm not sure why you had problems changing it.

[–] [email protected] 2 points 2 days ago (4 children)

With a quick test, this works for me...

(set-face-attribute 'default nil :foreground "yellow")

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago) (2 children)

I can't get it to accept the 'attribute' part.

set-face-foreground 'default "white" changed the text in the edit area to white, but had no effect on the text described above.

[–] [email protected] 1 points 1 day ago (1 children)

Bah, I misread stuff. Long day. I just tested in my terminal and (set-face-foreground 'minibuffer-prompt "cyan") changed the save-file prompt messages.

[–] [email protected] 1 points 1 day ago

Ok, Now my entire ~.emacs file is:

(set-face-foreground 'mode-line "white") (set-face-background 'mode-line "blue") (set-face-foreground 'minibuffer-prompt "cyan")

load more comments (1 replies)
load more comments (1 replies)