Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
0 answers
29 views

Can identical example and source blocks be made to look different in a PDF export?

I use both #+begin_src and #+begin_example blocks in my org-mode markup that gets exported to PDF. If I put identical text in to these blocks, then they look identical in the PDF export. Is there any ...
J. Mini's user avatar
  • 177
0 votes
1 answer
34 views

How to change the color of superscripts and subscripts in latex in org mode?

Changing emacs themes, it seems that there is a variable that determines the color of the superscript ^ and subscript _ symbols in latex math environments in org mode (in the source code not the ...
userrandrand's user avatar
0 votes
0 answers
53 views

Wrong colors on Xfce-terminal

I use a colour scheme called solarized. Since I updated my Debian system a couple of weeks ago, colours are all wrong when I run emacs on Xfce-terminal Unsetting the COLORTERM environment variable ...
Ernest A's user avatar
  • 481
0 votes
1 answer
41 views

Jest output colour codes not being recognized in compilation buffer

I have some node (typescript) code which is slightly broken and produces an error when I run it (not my problem here). When I run it in M-x shell mode, I get: $ jest FAIL src/db/DbLookups.test.ts ● ...
Richard Wheeldon's user avatar
0 votes
0 answers
30 views

color org-agenda entries by level

My org agenda (I use it as a todo-list without dates with the alltodo type, generating a list of all todo entries for each file) has many entries with many subheadings (which can again have multiple ...
swhalemwo's user avatar
1 vote
1 answer
99 views

Disable 24-bit color mode in a terminal

I have set up some custom colors for various faces in Emacs. They mostly look like this: (custom-set-faces ; ... '(font-lock-constant-face ((((type tty)) (:foreground "bright magenta"))...
asciiphil's user avatar
  • 121
0 votes
1 answer
39 views

transient mark mode highlighting not visible inside preview latex

I am using preview latex in auctex. When you are inside an equation there is a blue background around the latex you are previewing, which means I cannot see the highlighing from transient mark mode. ...
Progamer's user avatar
0 votes
0 answers
23 views

Printed in named buffer with text matching pattern getting coloured

I have the following function that prints some text in the *Messages* buffer. I want to change this so the text gets printed to a named buffer instead. (defconst tika-outlshow-details " Show-...
Dilna's user avatar
  • 1
0 votes
1 answer
38 views

How to add syntactic elements to modes with colourizing and correct tabulation

I am using literate programming in org mode. It adds a new syntactic construction to the language: <<macro name>>. Unfortunately, it breaks all the colouring and tabulation after it. For ...
user4035's user avatar
  • 1,069
1 vote
1 answer
535 views

How to enable 24-bit color emacs on terminal when opening it from a remote machine?

Both of my computers, says A and B, have a terminal that supports 24-bit color. Opening emacs on both terminals also show the 24-bit colors, e.g. executing M-x list-colors-display will list 556 ...
nougako's user avatar
  • 137
1 vote
0 answers
96 views

Is there a way to export a selected color scheme into css for org-mode?

I know that you can set the org-html-htmlize-output-type variable to 'css in order to make org-mode use a set of CSS classes for coloring output. However, all of the colors need to be defined by the ...
sajmon's user avatar
  • 56
0 votes
0 answers
57 views

How to stop screen from changing how emacs handles colors

In .screenrc, I have this line: term xterm-256color If I do not use that, or if I try something different (like xterm-color or screen-256color), then emacs has absolutely no color. Here is a font-lock ...
Ness's user avatar
  • 177
0 votes
1 answer
81 views

Make Emacs not change mouse pointer color and theme

I found the this answer to the question of how to change ones mouse pointer color for when the mouse pointer is hovering over Emacs: https://emacs.stackexchange.com/a/3185/10090 However, this really ...
Zelphir Kaltstahl's user avatar
0 votes
1 answer
32 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 ...
Dilna's user avatar
  • 1
0 votes
1 answer
72 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 output of the coloring: If possible, I want to add custom keywords into Builtin Exceptions such as QuietExit, Terminate ...
alper's user avatar
  • 1,390
1 vote
2 answers
227 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 ...
loris's user avatar
  • 315
1 vote
1 answer
298 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(...
ironfish's user avatar
  • 268
1 vote
1 answer
52 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") ...
Philipp Ludwig's user avatar
0 votes
0 answers
90 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-...
Dilna's user avatar
  • 1
-3 votes
1 answer
41 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 ...
Dilna's user avatar
  • 1
0 votes
1 answer
46 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&...
Dilna's user avatar
  • 1
0 votes
1 answer
54 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") ...
Dilna's user avatar
  • 1
0 votes
3 answers
235 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 ...
charliesneath's user avatar
1 vote
2 answers
187 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 ...
DeinFreund's user avatar
0 votes
1 answer
21 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-...
Dilna's user avatar
  • 1
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 "...
Dilna's user avatar
  • 1
0 votes
1 answer
221 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/) ...
tallow_amnesty's user avatar
0 votes
1 answer
149 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 ...
fegax's user avatar
  • 45
1 vote
1 answer
247 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 ...
HelloGoodbye's user avatar
1 vote
1 answer
54 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 ...
Michel Lecomte's user avatar
1 vote
1 answer
434 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?
Dilna's user avatar
  • 1
0 votes
1 answer
279 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 ...
tobiasBora's user avatar
0 votes
0 answers
44 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 | |--------------+----...
alper's user avatar
  • 1,390
0 votes
1 answer
96 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 ...
ideasman42's user avatar
  • 8,826
2 votes
1 answer
206 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 ...
Ricky Robinson's user avatar
1 vote
0 answers
65 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 ...
Inspired_Blue's user avatar
1 vote
1 answer
75 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 ...
Inspired_Blue's user avatar
1 vote
1 answer
236 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, ...
alper's user avatar
  • 1,390
4 votes
1 answer
807 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) ...
kjo's user avatar
  • 3,247
2 votes
1 answer
105 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 ...
alper's user avatar
  • 1,390
0 votes
1 answer
91 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 (...
alper's user avatar
  • 1,390
0 votes
0 answers
38 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 ...
mhucka's user avatar
  • 173
0 votes
1 answer
545 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 ...
flying_plankton's user avatar
1 vote
1 answer
672 views

How do I change the highlighted background color inside the parenthesis?

I am using pretty much the default theme color however, I do want to change the highlighted background color inside the parenthesis. Is there any specific Face Attributes setting for this specific ...
user76333's user avatar
  • 113
0 votes
2 answers
2k views

How do I change the color of the menu bar in terminal Emacs?

I am using Emacs in a terminal. This is what the menu bar looks like: The menu bar has a white foreground and a black background. I want a green background with a pink foreground instead. Is there a ...
Flux's user avatar
  • 603
2 votes
1 answer
170 views

Getting consistent colors for terminal and GUI emacs

I've noticed that color definitions on the terminal and the GUI are not consistent. For example on the GUI, there is a color DarkOrchid2 defined, however this is not there for the terminal. Instead, ...
zcaudate's user avatar
  • 657
1 vote
1 answer
219 views

Do not colour "word" colours in rainbow-mode

In rainbow-mode, is it possible to toggle colouring only "words" or only "hexadicimals"? I don't see a variable I could set.
Arktik's user avatar
  • 972
5 votes
1 answer
152 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 ...
Nicolas Rougier's user avatar
0 votes
0 answers
59 views

Marking up colored text in Org

I want to generate an Excel spreadsheet programmatically from an Org document. Any tips on how to markup colored text? I understand that Org does not natively support color markup, wondering if there'...
Budiman Snowman's user avatar
0 votes
0 answers
88 views

Emacs python-mode language formatting does not reapply on buffer on newly typed text

When I open a .py file for the first time the formatting is perfect, colors match special words as expected in Python But when I type new text in the buffer, it inherits the color of the same ...
AmazingMiki's user avatar

1
2 3 4 5