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
0 votes
1 answer
14 views

Colouring different parts of a comment

I want to change the colour of substrings inside comments in a buffer. So that text enclosed by braces are coloured differently. For the following bash comment, I want the text enclosed bf {} to be ...
0 votes
1 answer
23 views

How can I add custom keywords into Builtin Exceptions in python-mode to color them?

In python-mode, Exception keyword has font-lock-type-face for coloring. Example coloring: If possible, I want to add custom keywords into Builtin Exceptions such as QuietExit, Terminate to color them ...
2 votes
1 answer
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: ...
0 votes
0 answers
21 views

Org mode column view: color gradient for numeric column

I have an Org user property, score, which takes values from 0 to 100. When viewing this property in column view, how can I format the cell backgrounds using a color gradient? This does something ...
1 vote
1 answer
183 views

Quick temporary colour change

I'm using a dark theme to write Clojure, with rainbow parentheses etc. I like this theme and its syntax colouring, and I don't want to change it or mess it up. BUT ... I'm currently sitting outside in ...
2 votes
1 answer
220 views

Improving org-block-begin-line, splitting in several faces

The face org-block-begin-line allows to customize the first line of the following block #+BEGIN_SRC lang :var arg1=1 arg2=2 ... #+END_SRC However, I would like to customize the faces within the line,...
0 votes
1 answer
143 views

How to show colours and clear when running React development server in eshell?

Here is how the usual Ubuntu terminal looks when you run the React development serving using npm start and make changes to your source: Say the server was already running and you tried to do npm ...
5 votes
1 answer
126 views

Unable to load color "#FFFFFF" (mouse-face)

Using Emacs 27.1 (mac port, BigSur), I get a strange behavior when I set the mouse face color using an hexadecimal description. Running emacs -Q -l show-bug.el, with show-bug.el being: (font-lock-mode ...
0 votes
1 answer
30 views

Changing the colours of menu-bar pop-ups (not of the menu-bar itself)

[Crossposting from gnu.emacs.help after getting no response there.] With Emacs 27.1, in the terminal the standard colour scheme, the pop-ups of the menu I get via F10 have a blue background and with ...
1 vote
1 answer
53 views

Coloured active mode line only when many windows

I am reluctantly using a coloured active mode line to distinguish it from inactive mode lines, but it occurred to me that it might be possible to reserve its colouring for times when there are more ...
0 votes
1 answer
153 views

Printing coloured text in emacs mini-buffer and *Messages* buffer

I want to print coloured text in the minibuffer and in the Messages. Can this be done and how?
4 votes
1 answer
385 views

Color when visualizing latex table in orgmode

I am using Emacs + orgmode to write text and latex equations. The preview within orgmode (with C-c C-x C-l) works well for latex equations. However, I noticed that if I display a latex table within ...
1 vote
1 answer
30 views

How to set color of all DONE type TODO's

If I eg define the following in an .org file: #+TODO: TODO(t) ACTIVE(v) NEXT(x) WAITING(w) PROCESS(p) CONSIDER(c) USE(u) GOOD(g) ISSUE(i) CURRENT(4) ONHOLD(h) LATER(l) SOMEDAY(8) | DONE(d) ABANDONED(...
1 vote
1 answer
23 views

Customizing colors – Invalid Face

I am trying to just adjust a few colors, without creating a whole theme. My lisp startup file contains: (load-theme 'tsdh-dark t nil) ... (set-face-foreground 'custom-variable-tag "White") ...
0 votes
0 answers
39 views

font-lock-mode and printing in colour

After making a new buffer, font-lock-mode could either be enabled on disabled. For instance, if I use (text-mode) or (org-mode) will automatically enable font-lock-mode. However, for (fundamental-...
-3 votes
1 answer
39 views

Coloured indicators defined by a time interval

Would it be possible to have a coloured indicator that light at each second, then starts all over again? I would have a 4 column row in a buffer. After a predefined time interval the background ...
0 votes
1 answer
32 views

Recommended way to modify built-in (blink-cursor-timer-)function behavior

I have re-defined blink-cursor-timer-function for the cursor to change colour. How can I modify this without re-defining the build-in function? (defvar ramona-indicator-colour (list "#FFA500&...
0 votes
1 answer
36 views

Using colour when inserting text in a buffer

I would like print some text in either Green Blue Yellow Amber or Red? How can I do it? Have made the following function but calling (mcolour "text" "red" "Mybuffer") ...
0 votes
3 answers
43 views

Customize face foreground color value using the color of another face

I am making some small customizations to my org-agenda view. For the face called "Org Agenda Done", I am adding a strikethrough and changing the color. The color I want to use is already ...
0 votes
1 answer
69 views

How to change the background color when running in the GNOME Terminal?

I have added (set-background-color "blue") to my ~/.emacs (just for test purposes). When I run Emacs in windowed mode this makes the background color blue (as expected), but when I run Emacs ...
1 vote
1 answer
371 views

Strange Color Issues

I've been playing around with Emacs for the first time this week, and I've been having some issues with the color scheme. This post was prompted by getting some weird when using helm. I've also ...
0 votes
0 answers
23 views

How can I show custom defined colors in *Colors*

When I attempt to customize-face In *Colors* Emacs shows default set colors like: Instead can I show custom defined colors of my own that has following ascii codes: https://github.com/dracula/dracula-...
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 ...
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?
0 votes
2 answers
67 views

Adjust unreadable blue color for rustic mode

When using clippy with rustic mode, I'm unable to read any of the blue messages on my screen. I would like to change the color so I can read these messages. Existing answers tell me to adjust the ...
4 votes
3 answers
581 views

How to override background to black after load-theme?

I am using the monokai theme from https://github.com/oneKelvinSmith/monokai-emacs, and I would like to override the background to be black. Following the override instructions, I tried: (setq monokai-...
1 vote
2 answers
653 views

Required color-theme file missing in Emacs 26

After upgrading my OS (Ubuntu, from 18.04 to 19.04), my favorite text editor was automatically upgraded from Emacs 25 to Emacs 26. I then encountered a familiar error message at start-up: File is ...
0 votes
0 answers
17 views

Coloured table with enriched-mode

I want cells in tables to be coloured with the colour scheme kept stored so they show up when I load the file again. One solution could be enriched-mode. I need some help making up an example where a ...
1 vote
0 answers
36 views

Background colouring of lines composed of repetitions of the comment character

The following code changes the background colour of lines that are composed of the repetition of the comment character for lisp-interaction-mode. (defface special-comment '((t (:background "...
0 votes
1 answer
19 views

Change colour of cursor indicator in ruler-mode

I am using ruler-mode and would like to change the background and foreground colour of the cursor indicator. Had a go with ruler-mode-current-column but emacs is complaining that ruler-mode-current-...
0 votes
1 answer
57 views

`M-x shell` not displaying colors

OS: Mac OS 12.5.1 Emacs: GNU Emacs 28.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2022-05-11 (i.e. the 28.1-4 binary from https://emacsformacosx.com/) ...
22 votes
4 answers
6k 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'...
0 votes
1 answer
55 views

How to change background color of a specific file?

Let's say I want my file notes.org to have a specific background color. How to do that? But I want other files to adhere to the standard theme color for background. So, I want yellow background for ...
1 vote
1 answer
32 views

Emacs palette.el paste hex color value

Can someone tell me how to copy/paste the hex color value showed by palette (M-x palette) into the current buffer. When I hit Enter key it displays another frame From this I'd liked to copy then ...
0 votes
1 answer
165 views

How to change the color, or remove, the vertical line next to the scroll bar?

When I try some themes like the doom-nord-light theme, I get some weird line on the side of the scroll bar (here in yellow, but sometimes it is black): How can I could remove them or change their ...
0 votes
0 answers
35 views

How can I change color of comments if they are next to a table in org-mode?

In org-mode comments next to a table is same color as the table itself. Would it be possible to change the comments' color if they are next to a table? For | Timestamp | Money | |--------------+----...
2 votes
2 answers
401 views

How can I set color for listing executable files in Dired Mode?

Trying here to set color for executable files, as it is for ls command! How can I do that? I've already managed to set color for certains file extensions, using Diredful package, but couldn't do it ...
0 votes
1 answer
67 views

How to define a face that blends between two existing faces colors?

When defining a new face, how to blend/interpolate between two existing faces colors? For example - mix the colors foreground of default and the background of the error face with a factor 0.0 being ...
2 votes
1 answer
139 views

company-mode popups and magit current region are dark while current theme is light

I've been successfully using lsp-mode and magit for a while with a light theme (leuven). Today I was messing with something seemingly unrelated (company-mode and auto-complete settings in my ~/.emacs ...
1 vote
0 answers
41 views

Conditional Formatting foreground and background when highlighting selected text

This is a follow-up question to: Interchange Foreground and Background Colors when highlighting selected text. How can I do some conditional formatting? For example I do not want inverse-video if the ...
1 vote
1 answer
46 views

Interchange Foreground and Background Colors when highlighting selected text

I use something like this to control the background color of my selected text: (region ((t (:background ,green)) (t :inverse-video t))) However some foreground colors don't go well with ...
0 votes
1 answer
318 views

Changing font color with Key bindings?

I've been using Emacs org-mode to primarily take lecture notes for university, and I find that it is remarkably useful and I can usually type everything up fairly quickly. Recently, I've been wanting ...
1 vote
1 answer
140 views

Would it be possible apply different font/background color for `<code_sample>` in org mode?

In markdownmode, or while asking questions in stackoverflow, when we do, `<code>` or ```<code>``` The background become changes into gray. Would it be possible to apply same in orgmode, ...
5 votes
2 answers
432 views

Error on list-colors-display

When running this function: M-x list-colors-display I always get the following error: Wrong number of arguments: #<subr max>, 0 If I try to use edebug in the function I get: edebug-signal: ...
2 votes
1 answer
386 views

How to change visual appearance of ANSI colors for *shell* buffers running on "GUI Emacs"?

OS: Linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux Emacs: GNU Emacs 28.0.50, with a solarized theme from here Terminal emulator: terminator 1.91, with a solarized (dark) ...
2 votes
1 answer
65 views

How to disable `flycheck` while merging Git conflicts

I am using following solution for merge Git conflicts in Emacs, which is based on smerge. During merging smerge-mode creates <<<<<<< HEAD , ||||||||| parent lines for conflict ...
0 votes
1 answer
84 views

frame-background-mode leads `Args out of range: #<buffer doo.py>, 0, 1` error

I am using following answer to search and replace a word in the entire buffer: (defun query-replace-region-or-from-top () "If marked, query-replace for the region, else for the whole buffer (...
0 votes
0 answers
30 views

Why does ^g reset my cursor color?

I'm using Emacs 27.2 on macOS 10.13.16 from the railwaycat build. I set my cursor color to a red color using (set-cursor-color "red") As soon as I type controlg, the cursor color reverts to ...
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 ...
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 ...