Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
11 views

How to color flycheck's mode line text

I have this, but it doesn't color anything: https://github.com/skrat/dots/blob/master/emacs/.emacs#L177 https://github.com/skrat/dots/blob/master/emacs/.emacs#L357-L362
0
votes
1answer
31 views

How to change cursor on defocus?

I am running emacs on a Linux machine to my Windows 10 desktop server (running VcXsrv 1.20.1.4). I'd like to get a hollow-square cursor when the emacs window doesn't have keyboard focus, and a filled-...
1
vote
0answers
118 views

Strange Emacs Colors in gray30 Background Urxvt

Recently I've been trying out different terminal color schemes. However, I found out that when I change the background of urxvt to gray30, emacs -nw has completely different syntax coloring. I've not ...
1
vote
0answers
19 views

Colors do not get saved [duplicate]

I want to color a word in emacs. So I open a somefile (C-x C-f somefile) and a write some silly sentence. Now I want to colorize the word silly with yellow. So, with the mouse I chose Edit > Text ...
0
votes
1answer
73 views

How to enable 256 colors in terminal

I'm having a problem with setting up colors in my xfce terminal. (list-colors-display) shows only 8 colors, while both my $TERM variable and (tty-type) is xterm-256color. I've dug through the ...
1
vote
2answers
54 views

Different color theme for scratch buffer

I'd like my *scratch* buffer to have it's own color theme, different to the one I use elsewhere, so that I know when I'm working there. How can I do this?
0
votes
0answers
18 views

Definition and usage of colors [duplicate]

I'm trying to define a color set (from material color) in order to be able to easily change the set I want to use. I think I've managed to define them but then, I'm not able to use them properly. I ...
2
votes
1answer
169 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: ...
1
vote
1answer
47 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
81 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
301 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
38 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
137 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
122 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
99 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
83 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
25 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
1answer
59 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
88 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
1answer
82 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
80 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
73 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 ...
1
vote
1answer
387 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
115 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
171 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
86 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
66 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+...
2
votes
1answer
90 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 ...
1
vote
0answers
56 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
342 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
240 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
967 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 ...
2
votes
0answers
135 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
1k 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
71 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
votes
2answers
520 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
735 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
122 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
324 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
2answers
541 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
669 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
79 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
250 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
209 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
493 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
133 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
33 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
134 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
158 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 ...