Questions tagged [colors]

for font colors, menu colors, screen colors, and other presentation elements of Emacs interface. For questions about colors related to exports, printing, and external programs, include additional tags. Also add tags for running Emacs on handheld or newer portable devices.

Filter by
Sorted by
Tagged with
2 votes
1 answer
544 views

does anybody know this light-blue emacs theme's name?

emmm. i just found through all the MELPA by keywords theme, but still cant find this theme, if someone can point out, i'll appreciate a lot, i love this theme very much.
  • 111
5 votes
1 answer
767 views

How to detect the term color support inside of a emacsclient session?

I run a emacs daemon on boot as a OpenRC service without info about terminals. When I plug a different terminal on emacsclient so, I don't have env variables instead that was generated inside of emacs ...
9 votes
2 answers
2k views

#000000 and true black in terminal Emacs colors

I just ran into a weird issue while tweaking my colour theme for terminal Emacs. The background wasn't appearing as black as expected, but grey, even though the background was set to #000000. So I ...
  • 21.1k
4 votes
0 answers
574 views

How to display and format leading spaces (spaces at the beginning of a line) with whitespace-mode? [closed]

I want to see all spaces at the beginning of a line as dots. Also tabs and line breaks. So I've set my init.el file as the following: (setq-default indent-tabs-mode nil) (setq whitespace-style '(...
  • 151
21 votes
5 answers
4k views

Emacs Blue color too dark

Emacs blue (on dark background) is too dark. classA is readable with difficulty in the example below: How to fix the dark blue colour?
  • 715
0 votes
1 answer
149 views

Default syntax highlighting as in "emacs -Q"

I want to use the syntax highlighting that you get when running emacs -Q. If I run emacs -q, or run Emacs with no ~/.emacs file existent, or not load any custom theme, I get a dark-backgrounded color ...
  • 3
6 votes
2 answers
2k views

What is the correct way to unset :foreground color?

For better experience color-identifiers-mode recommends turning off colors for everything. The example in README does it by setting :foreground of faces to nil, which kinda works. However doing it ...
  • 503
1 vote
3 answers
1k views

Different colors for questions and answers in org-mode

I'm writing questions and answers in org-mode for project purposes (like meeting notes). A sample looks like this: 1. [X] Equipment name for tags associated with pumps - Discuss Comment: We can ...
  • 1,390
2 votes
0 answers
218 views

ANSI TERM via `M-x TERM`: How to change line highlighting color?

How do you change the line-highlighting color in an ANSI-TERM?: I am using PDB++'s sticky mode for Python debugging. This is how to appears on a regular terminal (lubuntu 17.04): Notice the word ...
0 votes
1 answer
547 views

How to change default color theme for ansi-term?

I have the package color-theme-buffer-local, which allows you to change the default color theme on a per-buffer basis. I added this to my config: (add-hook 'term-mode (lambda nil (color-...
  • 849
2 votes
2 answers
2k views

Orgmode Latex Preview: Change Font Color

In Orgmode we can use C-c C-x C-l to preview Latex equations in the text. I am using a theme that makes it hard to read the equation in the default font color, and I want to avoid changing the scale ...
3 votes
1 answer
2k views

Python mode - custom syntax highlighting

I am an Emacs newbie and trying to work out how to implement custom colors. Currently I have a conditional statement and a while statement which both use the same face (font-lock-keyword-face). Is ...
2 votes
0 answers
116 views

How to make minor customization to emacs theme colors

I'm a fan of gruvbox, but would like to slightly change the white colors to make them less intense. Is there any easy way of changing this line: (gruvbox-light0 "#fdf4c1" "#ffffaf") to this: (...
  • 569
1 vote
1 answer
446 views

Text background is a bit lighter than emacs' background color

If you can't see the screenshot in full resolution, click here So you may or may not see that the background color "behind" the text (including the linum) is lighter (#20292D) than the window's ...
  • 13
5 votes
1 answer
6k views

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

I'd like to try and get to a similar setup that I have with N/Vim in OSX, whereby Truecolor support is enabled in iTerm2 (which supports 24bit colors) but disabled in the native Terminal app (which ...
1 vote
2 answers
341 views

emacs lisp execute random command

I want to change my colour scheme to a random color scheme. Consider this elisp function: (defun random-colour-theme () ;; written 2017-04-02 "Pick a random colour theme." (interactive) (setq ...
2 votes
2 answers
795 views

Spacemacs modeline color mismatch

Problems with my modeline separator aren't quite the "Ugly separators" problem as seen here. But the color is slightly off, as in this screenshot. I can solve it with this piece of code. But then ...
1 vote
1 answer
294 views

How can I syntax-highlight a function like a macro?

I've got a function that behaves more like a macro in that it does compile-time environment definitions. For various reasons (at this point, one of those reasons is 'because it is easier to grok in ...
  • 6,751
1 vote
1 answer
46 views

What function is used when selecting a color in a Customize buffer?

I don't like the function that Customize uses to select color. It spawns a new buffer that messes up window configuration, and is also difficult to search. I want to replace this function with the ...
  • 452
4 votes
2 answers
244 views

Shifting Emacs Theme from one Computer to Another

I am a little new to emacs and have managed to get the color theme to my liking. However, I want to be able to use the same theme on a different machine and have been struggling to get it to work. I ...
  • 41
1 vote
0 answers
221 views

Changing org colour order with solarized theme

Using the solarized theme from this repository, how can I change the colour order of org headings? I like the default order better than those defined in the solarized package, but would like the ...
  • 3,044
3 votes
1 answer
3k views

How do you set colors for term?

I want to run tmux in emacs. I checked that it works in term, but default colors are awfully hard to read: How can they be changed to a sensible setting from .emacs file?
1 vote
1 answer
642 views

How to Customize Rainbow-Delimiter and Emacs-Color for a theme with Dark Background

I have installed rainbow-delimiter packages, and I tried to customize it based on the code written in this page. However, I found out that some generated colors are too dark when it is used with a ...
4 votes
0 answers
162 views

Use colors with artist-mode

Is there a good robust method to draw with colors in artist-mode or a similar mode? By this I mean setting the foreground and background faces to colors such as red, green, blue, etc. for individual "...
  • 7,089
2 votes
1 answer
361 views

AucteX Citation Color

When inserting a reference in a LaTeX document (using Auctex) I normally type: \cite{joebob_2010} where "\cite" shows up in blue font, while "joebob_2010" shows up reddish/purple. I like this ...
  • 240
5 votes
3 answers
999 views

Change fill-column-indicator rule color immediately

How can I change the color of the fill-column-indicator and have the changes visible immediately? (defun my:change-fci-color (color) (setq fci-rule-color color) (fci-redraw-frame)) The previous ...
  • 1,302
1 vote
1 answer
796 views

Why does the zenburn colour scheme look different on different computers

I have just started using the zenburn theme in emacs on my macbook and I really like how it looks. It looks like this: However when I put it on my ubuntu pc (my .emacs.d directory is synced with git ...
9 votes
1 answer
903 views

Coloring mu4e headers based on title content

I'd like to color the messages in my *mu4e-headers* view, depending on which mailing list they come from. I'm rather new to emacs face alterations, and I didn't see anything that looked relevant for ...
2 votes
0 answers
85 views

Is there a way to color replies in the email body on mu4e?

I'm on some mailing lists and there is a top-post culture. It's difficult for me to visually delineate the reply from the original content. Is there facility for coloring (perhaps in alternating ...
1 vote
1 answer
232 views

How to set the color for whitespace in isearch failures

I have my isearch failure face set like so: (custom-set-faces ... '(isearch-fail ((t (:background "#660c00")))) ... ) It works for the most part, highlighting text which doesn't match in that ...
  • 1,310
3 votes
1 answer
1k views

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

When I incrementally search for a phrase with C-S, emacs usually highlights all matching results visible in the buffer by giving them a different background color. However, my current theme apparently ...
  • 567
2 votes
2 answers
966 views

Emac in Terminal opens in unusable green background

[OS X 10.11, MacPorts Emacs 24.5, OS X Terminal, lots of stuff in emacs and shell init files] I almost always use Emacs.app (GUI). Sometimes I want to open Emacs in a terminal. When I open Emacs from ...
16 votes
1 answer
2k views

Getting more than 8 colors in a terminal emulator inside Emacs

My understanding is that ansi-term only supports 8 colors (a good discussion of this in reddit here). Meanwhile, an increasing number of terminal emulators (e.g. tmux or iTerm2 in OS X) support True ...
0 votes
2 answers
715 views

Set specific TERM variable for only emacs terminals

I'm using multi-term right now in GUI cocoa emacs on OSX, and it works great in general. However, I'm running into a bit of an issue with my TERM variable. I generally set it to xterm-256color for ...
user avatar
5 votes
1 answer
3k views

Getting the full list of colors available in Emacs

When I run list-colors-display I get the following: which I think is a very small subset of colors that my Emacs supports, isn't it? For example, I know Emacs supports other colors (gray20, blue15, ...
1 vote
0 answers
444 views

How to set column highlight background color for wrapped lines in terminal mode?

I'm new to emacs (spacemacs). I've set up the col-highlight package in my .spacemacs like so: (column-highlight-mode 1) (set-face-attribute 'col-highlight nil :inherit 'hl-line :background) in ...
1 vote
1 answer
951 views

Gotham theme with 256 colors

When I use, gotham-theme, it says that you can get the 256 colors by (setq gotham-tty-extended-palette t) but I do not feel any difference between activating one and the other with only 16 colors; I ...
  • 729
6 votes
1 answer
1k views

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

I want to highlight the current symbol under the cursor as well as the current line, but with different background colors. Combining highlight-symbol-mode and hl-line-mode only highlights the entire ...
2 votes
2 answers
99 views

Some themes make my font multiple sizes. How can I disable this?

I like the colors from these beautiful themes, but I wish I could disable the font resizing.
  • 21
0 votes
1 answer
176 views

Colored completion buffer when opening files

As you all know when you hit C-x C-f and then TAB to auto-complete, an auto-completion window pops-up. But does anyone know how to get the list of files colored by type (eg. folder in blue, files in ...
  • 857
4 votes
4 answers
2k views

Background color of LaTeX fragments in Org mode

How can I control the background color of my LaTex fragments in Org-mode? I am using the badwolf-theme package, and this is what I get: I would like the background color of my formulas to match the ...
1 vote
1 answer
939 views

Terminal: get 16-colors default color scheme in 256color mode

I really really like the default (dark) color scheme in 16 colors terminal/tty emacs (TERM=xterm), but with some plugins like powerline, 16 colors doesn't cut it. Hence I need to switch to 256colors (...
  • 203
2 votes
2 answers
246 views

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

Since I learned how to colorize man pages using LESS_TERMCAP I find them much more easy to read. I would like to achieve the same with Info pages in emacs. For example, colorize function names, ...
  • 123
1 vote
1 answer
2k views

Use colors specified in terminal emulator for emacs

Emacs seems to use the 16 colors which were defined in a color scheme inside the terminal emulator as default. This works well, I would not want to switch to a whole emacs color profile. E.g I can ...
1 vote
0 answers
899 views

Restore default colors (black text on a white background)

I played around with elpy and after following the tutorial, it changed the emacs theme to a black background. When trying to revert this, I managed to get a white font on a white background ...
  • 111
5 votes
1 answer
336 views

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

Specifically, I want tags in org mode to be a variant of the color of the corresponding heading (e.g. less saturated or lighter). Each org mode heading level is a different color, so I can't just ...
  • 1,533
3 votes
1 answer
1k views

how to color column in Dired?

How can I manage with Emacs dired-mode colors? For example, if I want to make column with file's last modified time and date to be red-colored.
  • 565
3 votes
1 answer
739 views

how to define color for part of a comment?

How to make colored some part of comment? Let comment be ;; This is James Bond diary. And I want to make "James Bond" in green. There will be only a few such strings and no places where it will be ...
  • 565
5 votes
3 answers
2k views

How to use zenburn with a darker background?

I have Emacs 24.5.1, installed zenburn-theme off of melpa-stable and loaded the theme in my .emacs with (load-theme 'zenburn). I like all the colours except the background. It's a bit too bright. How ...
  • 183
1 vote
0 answers
26 views

How can I have C functions coloured based on whether they are defined?

Colleague of mine showed me a cool feature of gnome-builder which does colour symbols based on whether they are defined or not and I was wondering whether it is possible in Emacs as well. And by that ...
  • 213