20 votes
Accepted

Emacs Blue color too dark

Add frame-background-mode to your init file: (setq frame-background-mode 'dark)
Viesturs's user avatar
  • 825
19 votes

Emacs Blue color too dark

Put the cursor on the blue word, and say C-u C-x =. Find the face entry and click on its value. Then click on customize this face and change the foreground value to e.g. Cyan1. If you are in a ...
NickD's user avatar
  • 29.8k
13 votes
Accepted

#000000 and true black in terminal Emacs colors

Turns out this was a problem with gnome-terminal. I fixed it by opening the profile preferences from the gnome-terminal menu bar, selecting colours, and changing the built-in scheme to Linux console.
Tyler's user avatar
  • 22.3k
11 votes

Emacs Blue color too dark

Faces in Emacs can have different values, depending on display attributes such as the number of colors supported or whether they're displayed on a light/dark background. Emacs can guess the latter ...
wasamasa's user avatar
  • 22.2k
9 votes

How to use zenburn with a darker background?

You can modify zenburn's face definitions in your .emacs. I use this to avoid mucking up the background of other themes. (with-eval-after-load "zenburn-theme" (zenburn-with-color-variables (...
purple_arrows's user avatar
8 votes

How do I set the fringe colors to whatever is the background color?

You can set the fringe color to nil, in which case you don't need to worry about any theme changes. I've got the following in my config: (set-face-attribute 'fringe nil :background nil) And the ...
pandita's user avatar
  • 235
8 votes

Combine highlight-symbol-mode and hl-line-mode

highlight-symbol-mode uses text properties, not an overlay. hl-line-mode uses an overlay, not text properties. Overlays always take precedence over text properties, no matter how low the overlay ...
Drew's user avatar
  • 77.5k
7 votes
Accepted

Error on list-colors-display

I think the error comes from list-colors-print, which seems to have a nil at the end, and that gives you the error you see. This doesn't seem to happen in earlier versions of emacs and is probably a ...
John Kitchin's user avatar
  • 11.9k
7 votes
Accepted

how to change org-ellipsis foreground color?

Assuming that the org- libraries have already been loaded ... Type: M-x customize-face RET org-ellipsis RET To see a list of all faces for the org- library, type: M-x customize-group RET org-faces ...
lawlist's user avatar
  • 19.1k
6 votes
Accepted

Conditional True color (24 bit color) support for iTerm2 and Terminal.app in OSX with Fish shell

I believe that the @ symbols in your terminfo example are part of the Texinfo markup, rather than part of the terminfo code. Your terminfo entry should look like: # Use colon separators. xterm-24bit|...
Alan Third's user avatar
6 votes
Accepted

There's a way to use emacs like MS Word, to make text permanently colored, stylized, etc...?

If you want to get a well formatted text document, you can use emacs and others packages like LaTeX, ConTeXt, org-mode, or markdown (and pandoc) to get a beautiful and well structured pdf/html/ePub ...
Lizardo Reyna's user avatar
6 votes
Accepted

How do I change the font color of mode-line?

What you call the bottom bar is the "mode line". I recommend reading the first fews sections of the manual, especially this one to know the names of the various screen elements (this is not difficult ...
JeanPierre's user avatar
  • 7,465
6 votes
Accepted

Use the terminal background color for the emacs -nw

It seems that setting the background color of the default font to an undefined value turns off any customization. This feels like a hack, and there might be a better way to do this, but this worked ...
Haskell Curry's user avatar
5 votes
Accepted

Python mode - custom syntax highlighting

If you have a look into the python library (M-x find-library RET python RET) you see that the python-font-lock-keywords are constructed by the rx macro: (defvar python-font-lock-keywords ;; ...
Tobias's user avatar
  • 33.2k
5 votes
Accepted

What is the correct way to unset :foreground color?

nil is not a valid attribute value for :foreground, which can be a string or unspecified*, see (elisp) Face Attributes: Apart from the values given below, each face attribute can have the value `...
npostavs's user avatar
  • 9,203
5 votes

Emacs Blue color too dark

NickD has a good answer but doesn't update your menu bar which may also have the same dark blue (can you see what it says when you type ctrl + s?). This method will also fix hard to read menus. Run ...
Rick Smith's user avatar
4 votes

Emacs colors being set differently when TERM is 'screen-256color' and 'xterm-256color'

The problem is that I have no idea how the colors are set to begin with, and more importantly, why they are set differently. Perhaps this discussion on StackOverflow is relevant - some detailed ...
Noel Maersk's user avatar
4 votes

Use colors specified in terminal emulator for emacs

If you run emacs -nw, you can list all valid color names that can be used in the terminal. Here's an extract from M-x list-colors-display: black #...
wasamasa's user avatar
  • 22.2k
4 votes
Accepted

Can you describe a face color in terms of an inherited face color?

No, you cannot set a face to always be a certain amount lighter or darker than the inherited face. You can not customize a face based on context either. If you would like org tags to change color ...
Jordon Biondo's user avatar
4 votes

Emac in Terminal opens in unusable green background

Few themes work well with emacs run within a terminal because you are dealing with a much smaller color palette. Unless you have enabled 256 colors in your terminal, you are likely working with just ...
mwood's user avatar
  • 101
4 votes

Coloring mu4e headers based on title content

Line faces are defined in mu4e~headers-line-handler-functions. To change the face conditionally you can set your preferences in mu4e-mailing-list-colors and try the following code (based on the mu4e~...
jagrg's user avatar
  • 3,914
4 votes
Accepted

Change fill-column-indicator rule color immediately

The following three lines of code in this specific order will immediately visibly update the fci-rule-color -- in this example, I am using the color "red". (setq fci-rule-color "red") (fci-make-...
lawlist's user avatar
  • 19.1k
4 votes

How do you set colors for term?

Since in zenburn theme terminal colors look good I added the following lines in my .emacs: (custom-set-faces '(term-color-black ((t (:foreground "#3F3F3F" :background "#2B2B2B")))) '(term-color-...
Jānis Erdmanis's user avatar
4 votes
Accepted

Is it possible to disable color highlighting in css-mode?

You can switch off css-fontify-colors in the customization buffer that opens on M-x customize-option RET css-fontify-colors RET.
Tobias's user avatar
  • 33.2k
4 votes

Colored string in mode line

@NickD provided a good answer: use a face. OP's comment to Nick's answer says that he'll try to write a function that, given a string, returns a propertized string. Such functions already exist: ...
Drew's user avatar
  • 77.5k
4 votes
Accepted

Customize face foreground color value using the color of another face

You can get and set face attributes using the functions described in the Face Attributes Functions section of the Emacs Lisp Reference manual. E.g.: (set-face-foreground 'org-agenda-done ...
NickD's user avatar
  • 29.8k
3 votes
Accepted

How can I specify the background color for matching search results?

You are looking for the lazy-highlight face. You didn't mention what color your background is, so modify the below as needed: (set-face-attribute 'lazy-highlight nil :background "green") Similarly, ...
Scott Weldon's user avatar
  • 2,695
3 votes
Accepted

How does one colorize keywords in Info pages like in man?

(Expanding from the commentary on the question:) You're not actually colorizing keywords in manual pages that way; you're just colorizing bold, underlined, or "standout" mode text, which styles are ...
Aaron Miller's user avatar
3 votes
Accepted

how to color column in Dired?

As is typical in Emacs, you set font-lock-keywords in the particular mode, in this case dired-mode. Library Dired+ does this extensively for Dired mode. You can customize the faces that it provides, ...
Drew's user avatar
  • 77.5k
3 votes
Accepted

how to define color for part of a comment?

This answer is just a slight modification of Lindydancer's answer in the following link: https://emacs.stackexchange.com/a/20228/2287 It has been modified to highlight a double-quoted name -- e.g., ;...
lawlist's user avatar
  • 19.1k

Only top scored, non community-wiki answers of a minimum length are eligible