Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
41 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: ...
0
votes
0answers
26 views

Color theme with new frame

I use color-theme in my main frame. In my default future frames I set various frame attributes which works pretty well. Right now I do this: (setq default-frame-alist '( (font . "...
1
vote
1answer
23 views

How to make the background color of `x-show-tip` defined in `pos-tip.el` transparent?

I found the flycheck-pos-tip package uses a function defined in pos-tip-show which uses a built-in function: x-show-tip. I want to change the background color of x-show-tip to be transparent. There ...
2
votes
2answers
47 views

How to make tooltip background transparent?

I want to make the tooltip background somewhat transparent, say, change it alpha value to 0.5. I find these code in tooltip.el.gz (defface tooltip '((((class color)) :background "lightyellow" ...
1
vote
1answer
119 views

Set 24-bit colors terminal (Truecolor) for Solarized theme on Mac

I am trying to get Solarized theme color correct in terminal by enabling truecolor on my Mac, following the instruction from Spacemaces: https://github.com/syl20bnr/spacemacs/wiki/Terminal. But I ...
1
vote
1answer
23 views

Display and convert colors

I don't know if there's a package to show the colors according to their value. I know it's xah-css-mode and rainbow-mode. rainbow-mode only shows hex values and by name. xah-css-mode shows the above, ...
1
vote
0answers
79 views

Emacs don't display any colors at all

The dark blue color on my terminal emulator is hard to read. Does emacs have the ability to completely disable colors in its output, regardless of whether the colors are used for underlining file ...
4
votes
1answer
113 views

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

I'm totally new to the wonderful world of Emacs. I started to use it some weeks ago and i'm find myself to use it more and more... I would like to use it not only as a code editor, but also as a word ...
0
votes
1answer
74 views

Retain system color scheme when running without GUI

I'm typically running emacs -nw: problem is that Emacs overrides terminal (bash) color scheme and uses it's own default one which is in some cases unreadable. I would like emacs to use default ...
2
votes
1answer
61 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 ...
0
votes
1answer
16 views

How to set the background of color-hex-values with corresponding color in all modes (like in css-mode)?

In css-mode color strings get a background color corresponding to the respective color - like this (image): How to achieve this behaviour in other modes?
0
votes
0answers
38 views

How do I define a new color in a user's .emacs file?

I have a customization requirement (for branding purposes) to define custom colors for several backgrounds. This needs to use new color names rather than hard-wired #hex so that it can go in a shared ....
0
votes
1answer
69 views

mode-line refresh with alerts and weechat

Note - The original post incorrectly diagnosed this as a terminal issue. Further testing showed this not to be the case - the issue is a race condition in the alert package. I've crossed-out the now ...
0
votes
0answers
45 views

How to make emacs appear as if it is being run through a PuTTY terminal?

Throughout undergraduate, I used emacs via PuTTY from my Windows laptop (the school had a C toolchain set up on a server so I ssh'd in to do all my CS assignments). Now, I have set up my own local ...
0
votes
1answer
64 views

Load custom highlighting after colorscheme change

I am a Vim user and i recently decided to try Emacs Spacemacs, i have a problem setting up custom highlighting, i set some lines like the following in my .spacemacs (i guess it's the same problem in ...
0
votes
1answer
65 views

Why does emacs put a black background on comments?

For some reason emacs shows comments on a black background. The image shows an example from my emacs with the otherwise amazing color theme "aalto-dark" from the color-theme-modern package. I don't ...
1
vote
0answers
66 views

Org-table color entries that match a predicate

Say we have the following table: | Student | Grade | |---------+-------| | Foo | 7 | | Bar | 5.5 | | Baz | 9 | Is there a way to change the face color of an entry when a ...
0
votes
1answer
296 views

Spacemacs change line background color when has comment

I currently have a strange behave when my code has comment on Spacemacs. Making it bad to read a file with a lot of comments Anyone knows how to change this behave? I tried to search about it and ...
0
votes
0answers
93 views

How to edit the list of named/defined colors?

How can I change (insert,delete,rename,…) the list of named colors? I tried to edit /usr/share/emacs/25.3/lisp/term/tty-colors.el.gz and byte-compile after change, but it had no effect. Note: I do ...
0
votes
0answers
109 views

Not able to load a color theme from 'init.el' or using 'M-x color-theme-select'

I am trying to get emacs(emacs24) to load with another colortheme (looking to have a 'dark' theme). In my init.el file I have the lines: (eval-after-load "color-theme" '(progn (color-theme-...
0
votes
0answers
63 views

How to specify a color theme specifically for Latex editing (the buffers with .tex files)?

I am using Emacs and there are various 'themes', eg. link to examples, but they do not appear to be dedicated to Latex. Some have modes for Latex, but I am wondering if there are theme files that can ...
0
votes
1answer
51 views

sanityinc-tomorrow-eighties theme fails to show dired mode colors

I have the theme sanityinc-tomorrow-eighties enabled using (load-theme 'sanityinc-tomorrow-eighties t). I love this theme but my dired buffers do not show colors. I have installed and enabled dired+...
1
vote
1answer
71 views

How can I get 'face' functions in emacs to show a gradient colour?

I want to change the emacs fringe to a gradient of two colours. (set-face-background 'fringe <gradient>) As set-face-background requires a colour name or hex, I'm unsure of how I can get it to ...
0
votes
0answers
36 views

Colorize current agenda task in mode-line

My modeline shows a number of things - time, current line/column, current file, major mode, etc. It also shows the current clocked task in my agenda. However, the text is colorized in a very ...
1
vote
0answers
44 views

Dynamically change cursor color to indicate input script

I'd like to use the cursor color to provide visual feedback on the alphabet I am currently in (I sometimes have to switch rapidly between, say, Latin and Cyrillic, and find myself typing in the wrong ...
2
votes
1answer
260 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.
4
votes
1answer
190 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 ...
6
votes
1answer
895 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 ...
1
vote
0answers
97 views

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

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 '(...
6
votes
2answers
758 views

emacs blue 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
1answer
62 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 ...
2
votes
2answers
375 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 ...
1
vote
3answers
664 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 ...
2
votes
0answers
112 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
1answer
287 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-...
1
vote
1answer
428 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 ...
1
vote
1answer
573 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
0answers
68 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: (...
1
vote
1answer
225 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 ...
4
votes
1answer
3k 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
2answers
192 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
1answer
440 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
1answer
95 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 ...
1
vote
1answer
30 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 ...
4
votes
2answers
127 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 ...
1
vote
0answers
135 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 ...
1
vote
1answer
1k 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
1answer
220 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
0answers
83 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 "...
2
votes
1answer
220 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 ...