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
1
vote
0answers
25 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 ...
3
votes
3answers
4k views

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

I'm using Emacs in a terminal and am finding that when the TERM environment variable is changed between screen-256color and xterm-256color, the default colors within Emacs are set differently. Just ...
2
votes
1answer
298 views

Multi-Term does not color the whole background

I want a black background in my multi-term buffer and therefore, I call : (custom-set-variables '(term-default-bg-color "#000000") '(term-default-fg-color "#dddd00")) in my emacs initialization file....
1
vote
2answers
1k views

ediff - change colors and how to merge code

first question: is how to adjust colors of ediff-revision output, tried various versions - no luck: ;; Customizing colors used in diff mode (load-library "ediff") (setq ediff-window-setup-function '...
5
votes
1answer
133 views

Define colors for single use in minibuffer

I couldn't find anything on this, so I'm asking it here. I can display a message in minibuffer with (message "foo bar") I would like to give only the message "foo bar" a red color in the minibuffer....
2
votes
1answer
168 views

A different color for each client

Today I started using desktop-mode. It's nice to be able to save a desktop using the desktop-save command, and load one using the desktop-change-dir command. Sometimes I do M-x cd to change the ...
2
votes
0answers
146 views

Eshell stuck colors

When using eshell, if I run a command that outputs colored text, sometimes eshell will get 'stuck' in that color. For example if I use ack and press Ctrl+C before the output finishes this will happen. ...
3
votes
1answer
2k views

Changing the background of line number column (linum) to the same color of line highlighting background color

Is there a way to set the background color of the line numbering to the same color of the line highlighting background color? So far I have to put the line numbering background color manually and of ...
7
votes
1answer
815 views

Change the background color of specific block?

I would like to start a different background color beginning from a function to the end. Like this: I'm aware you can define background colors from some faces like function and function names like ...
2
votes
1answer
741 views

How to disable underlining of highlighted matching brackets?

I want to have no underlining on highlighted matching brackets. I've done the following to achieve that: M-x customize-face show-paren-match And there I deactivated the underlining of matching ...
0
votes
0answers
47 views

Why does visiting a file cause my to lose me custom faces?

Every time I start emacs and visit my first reStructuredText file, I discover that I once again have the default colors for the section headings, which are illegible to me. If I have the customizer ...
1
vote
3answers
1k views

Colors illegible after upgrading OS

After having upgraded a computer from Ubuntu 15.04 to 15.10 the colors in Emacs (which I run in the terminal with --no-window-system) have changed substantially and some text is now illegible. I would ...
1
vote
2answers
1k views

Remove red border from modeline

I have a red border around my modeline, and I don't like it. How can I get rid of it? Emacs 24
4
votes
1answer
886 views

/bin/ls --color=always fails to produce colorized output in shell-mode

I have run M-x ansi-color-for-comint-mode-on. Also, when I use /bin/ls --color=always (or /bin/ls --color=auto) in a regular terminal, I do see colors in the output. It's only within Emacs' shell-...
3
votes
3answers
985 views

How do I duplicate the 'effective' theme colors resulting from using terminal Emacs with a transparent background?

I'm running GNU Emacs 24.5.4 on Mac OS X 10.10.5 in Terminal.app. In this (stock) setup, Emacs has a transparent background. With a transparent background, the colors that Emacs uses to display text ...
0
votes
1answer
61 views

Theme seems to be permanently changed

I added this to my init.el: ;; Transparent Emacs ;;(set-frame-parameter (selected-frame) 'alpha '(<active> [<inactive>])) (set-frame-parameter (selected-frame) 'alpha '(88 70)) ...
0
votes
1answer
475 views

How do I set cursor colours per evil-state in the (non-GUI) text terminal?

In the terminal, (set-cursor-color "red") has no effect, so the only way I can distinguish insert from normal mode under evil-mode is through the <N> or <I> on the modeline. Is there a way ...
2
votes
2answers
1k views

How to change the background/foreground color of some characters/words?

I know by M-x set-background-color or M-x set-foreground-color one can change the background/foreground of the the entire buffer. Of course this color change only persists in the current session. In ...
11
votes
1answer
937 views

Color declared variables

I'm looking for a simple way to make emacs remember of declared variable in a single function in C/C++. By "simple", I mean without any external package, just with some elisp lines in configuration ...
0
votes
1answer
197 views

How can I customize the colors used for reStructuredText?

Somehow I got into the situation where my section headings in ReST mode are rendered in one shade of gray for the foreground and another, nearly identical shade of gray for the background. This makes ...
1
vote
1answer
202 views

Text is black on startup — how to debug?

I just helped a colleague to configure package.el, smex, and ido and set up a nice theme (spolsky from the sublime-themes package) for Aquamacs. When I evaluate (load-theme 'spolsky t) everything ...
1
vote
1answer
150 views

C++ inconsistent foreground colors

I have started programming in C++ recently and have been testing using classes. What I have noticed is that if I declare a variable before my methods like: class Test { int value; public: int ...
0
votes
0answers
181 views

Different themes for text buffers vs ansi-term?

I'd like to be able to use different color themes when I'm editing text versus when I'm using a terminal such as ansi-term. (Note: I'm not referring to different color schemes for GUI mode versus ...
7
votes
4answers
1k views

Emacs cursor color is different in daemon and non-daemon modes

There's some weird stuff I encounter when running Emacs under KDE. Here's how it looks when I run it normally, via the emacs command: If I run it as a daemon, here's what I see: And if I run ...
1
vote
0answers
28 views

Is there a color selector in Emacs, that reads the HTML color under cursor? [duplicate]

As an alternative to the awesome vCoolor plugin. I tried to find alternatives in Emacs. When you do M-x color. You see a list of possible color functions. But nothing of them reads the color under ...
1
vote
1answer
482 views

ANSI colors in log4j mode

I have some log files which contain ANSI colors, but ansi-color-for-comint-mode-on doesn't work, to get emacs to properly display the colors, and still shows the control codes. Is there another way to ...
1
vote
0answers
154 views

Speedbar: Colored entries using imenu-generic-expression

I would like to search for certain doxygen like pattern in my files and then add corresponding entries to a speedbar for easy browsing. Some of these entries I want to have colored in red. I figured ...
2
votes
1answer
1k views

256 colors in FbTerm

Is there a way to get emacs with 256 colors in FbTerm? I've seen some old posts on the topic but I haven't seen any confirmation that it will work. EDIT: If I start FbTerm with this command: ...
3
votes
0answers
318 views

Avoiding screen flickering when one theme is disabled and another enabled (inhibit redraw???)

Is it possible to temporarily disable buffer (and frame) redraws? I particuarly mean situation, when I disable some theme and enable another one, and would like to avoid a moment when emacs flashes ...
7
votes
1answer
186 views

Theme background with opacity? Or theme callback?

Two related questions Is it possible to use opacity while theming in emacs? I mean defining theme which - for example - would add 25% of blue to the background color of elements it is applied to. Or ...
9
votes
1answer
2k views

How to define a good highlight face

I would like to use global-hl-line-mode, but some of my themes lack a good highlight face. Is there a general way to define one (that's not inverse-color)? I would like to maintain syntax highlighting,...
9
votes
1answer
2k views

Colored git output in eshell

I'm using emacs inside a mintty (configured to say it's xterm-256color) terminal on cygwin. list-colors-display works fine. and colors are displayed in dired listings etc. Now I set the color for git ...
1
vote
1answer
122 views

How to pick colors using Emacs to generate a 3-element vector

QUESTION:  Can Emacs help a user to pick colors in the form of a 3-element vector, and what does each element of that vector represent? Background: I borrowed certain sections of code from pong.el ...
3
votes
0answers
983 views

How to make the custom font lock keywords not override the default major mode font lock?

Following my previous question on making custom highlight rules here: Color-code a new generic character combination , I have stumbled on a new issue, that possibly merits another question. I have a ...
4
votes
2answers
611 views

Color-code a new generic character combination

I'm new to Emacs and Org-mode, this is a very basic question. Unfortunately the keywords are too common for me to find the answer. I would like to create a custom pattern to colour my writing input. ...
3
votes
1answer
555 views

Show colors in mode-line for minor modes

Can't get colors to show up in the mode-line. (eval-after-load "projectile" '(setq projectile-mode-line '(:eval (concat " Pj[" (propertize (projectile-project-...
12
votes
5answers
437 views

Ways to unobtrusively vary text rendering?

I'm writing an emacs extension for use with speech recognition, and I'm looking for help with a particular feature. Some words the speech recognizer (Dragon) recognizes consistently poorly -- it doesn'...
8
votes
1answer
3k views

How to change helm's highlight color

I'm using Monokai theme. When I start helm, the current selected line are highlighted in gray. It's not easy to spot,especially with the title information in blue. How can I change this gray ...
20
votes
3answers
4k views

Are there color pickers for Emacs?

I use the excellent rainbow-mode to highlight colors in CSS files. However, this assumes I know what color I want. Are there any color pickers that I can use for CSS editing inside Emacs? Ideally, I'...
1
vote
1answer
178 views

Different results using color-theme-select versus color-theme-<theme-name>

I am using the color-theme package to manage the colors in Emacs 24.3.1. I used the command color-theme-select to try different color themes until I found one that I liked. In this case I found the ...
1
vote
1answer
182 views

Green lines are invisible in diff output for some files in *shell*

I use Emacs a lot including for most terminal sessions. One of activities includes typing git commands inside a shell buffer. I found a very interesting color puzzle. After downloading forked ...
12
votes
3answers
4k views

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

I am using a distraction-free mode that uses giant fringes to center the buffer called bzg-big-fringe-mode. Problem is, these fringes often have a different color than the background which give an ...
7
votes
2answers
2k views

How to change the mouse pointer colour?

I am using the ample theme and I quite like it, but I can't see the mouser pointer when moving over emacs and emacs is activated; as the emacs background and the mouse pointer are black, I would like ...

1 2 3