Skip to main content

Questions tagged [coloring]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
133 views

How to keep existing text-property decoration while using font-lock?

I tried to use text-property to decorate specific texts as well as automatically color tab characters in a text-mode buffer, but didn't find a way to realize them at the same time. This is my try: ...
yos's user avatar
  • 11
0 votes
3 answers
283 views

Changing background colour of the line at point

I would like to change the background colour of the line at point. Would also like to be able to go back to the original colour. Have used hl-line-mode to highlight the current line. Is it possible ...
Dilna's user avatar
  • 1
0 votes
0 answers
21 views

How can I use only coloring of pip-requirements mode?

I am using https://github.com/Wilfred/pip-requirements.el to view my requirements.txt file. Coloring pattern is simple where: <pip_package_name>==<0.0.0> ; pip package name and its ...
alper's user avatar
  • 1,400
2 votes
1 answer
717 views

How can I apply ansi-color to complete buffer?

I am using following code to apply colorize text in emacs, such as for ^[ characters to apply color. In order to use this code I have to select text to apply it reference: https://unix.stackexchange....
alper's user avatar
  • 1,400
2 votes
0 answers
281 views

Keep original colors in pdf-view-midnight-minor-mode?

Q: can I keep the original colors for plots and photos in pdf-view-midnight-minor-mode? pdf-view's midnight minor mode allows me to change the foreground and background colors of a PDF document to ...
Dan's user avatar
  • 33.1k
0 votes
1 answer
404 views

How to change color of searched text in the minibuffer when M-x activated?

When I type M-x along with some text, the found text's background and font color is hard to read (gray and bold white on top of dark blue). Is it possible to change it? Example screenshot: As theme I ...
alper's user avatar
  • 1,400
1 vote
1 answer
306 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 ...
interstar's user avatar
  • 141
2 votes
1 answer
587 views

In a Python code is it possible to give a color to called functions?

As a theme I am using Dracula. For example I have this example code piece coloring: When cursor is on terminate() and I typed M-x customize-face it is linked to (default ‘all faces’). I am not sure ...
alper's user avatar
  • 1,400
0 votes
1 answer
288 views

How could I change the font color on the popped out window (jedi)?

I am using python-mode and jedi for autocompletion. (add-hook 'python-mode-hook 'jedi:setup) (add-hook 'python-mode-hook 'jedi:ac-setup) (require 'auto-complete-config) (ac-config-default) (set-face-...
alper's user avatar
  • 1,400
10 votes
1 answer
1k views

How to highlight in different colors for variables inside `fstring` on python-mode

I am using python-mode which colors the parameters. When I concatinate strings the variable color is represented as different: On the other hand, if I use fstring, the variable is not represented as ...
alper's user avatar
  • 1,400
0 votes
1 answer
224 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?
kai-dj's user avatar
  • 427
0 votes
1 answer
100 views

Change the block background color

My question is how to customize this kind of blocks' background color?
Handora's user avatar
3 votes
2 answers
2k views

Org mode - change code block background color

I wish to change the code block background color in org mode but below example doesn't work. #+ATTR_HTML: :background-color #eff0f1; #+BEGIN_EXAMPLE hello world! #+END_EXAMPLE Can I insert inline ...
lucky1928's user avatar
  • 1,668
3 votes
0 answers
1k views

How to get Powerline colours working in Emacs Shell/Term mode?

I have recently started using Spacemacs instead of VIM, because of great VHDL mode. In vim (neovim) I used to use VIM as terminal emulator. In Emacs I have encountered a bit of strange colour ...
Bruno Kremel's user avatar
3 votes
1 answer
197 views

Cursor colour based on input method

How can I let the cursor colour depend on the current input method?
Toothrot's user avatar
  • 3,274
0 votes
1 answer
70 views

Variable names for the nw drop down menu faces?

I'm trying to set up a color theme I like when using an xterm. I'm looking through the variable names (e.g. "Font Lock Doc Face") for the theme 'deep-blue' using Custom Theme option. Unfortunately, ...
mikemtnbikes's user avatar
1 vote
1 answer
1k views

Gotham theme with 256 colors

When I use, gotham-theme, it says that you can get the 256 colors by (setq gotham-tty-extended-palette t) but I do not feel any difference between activating one and the other with only 16 colors; I ...
anquegi's user avatar
  • 749
3 votes
1 answer
2k views

how to modify the active region highlighting color

Gray text highlighting no longer works on my Debian/stretch system. While this is particularly annoying in Emacs, it's not a specific Emacs problem; gray background is also gone from other ...
Joachim W's user avatar
  • 145
1 vote
1 answer
190 views

emacs-24: solid-colored mode-line with my color choice?

Is it possible in emacs-24 to set up a solid-colored mode-line with my color choice? ... for example, the entire mode-line would have a red background, and all mode-line text fields would be in ...
HippoMan's user avatar
  • 616
7 votes
1 answer
2k 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 ...
ReneFroger's user avatar
  • 3,890
1 vote
1 answer
210 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 ...
Czipperz's user avatar
  • 317
1 vote
0 answers
43 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 ...
ReneFroger's user avatar
  • 3,890
13 votes
1 answer
4k views

Why does *compilation* buffer show control characters?

I'm using the *compilation* buffer to build a C++ application on Centos 5 and Centos 6. The buffer shows the build and includes references to files that are part of the build. However, I'm getting ...
WilliamKF's user avatar
  • 393
3 votes
1 answer
445 views

Hexl-mode with colors?

I have just been using Hexl-mode to investigate some binary files. What I would like though, is some way of highlighting the byte under consideration: at the moment the line and column indices are ...
Alasdair McAndrew's user avatar
7 votes
2 answers
2k views

Use a different color theme for eww buffers

I saw this question: How to customize background color for some web pages opened with eww? but this won't work for me. I'm trying to read Wikipedia pages and in many places Wikipedia uses images to ...
wvxvw's user avatar
  • 11.4k
13 votes
1 answer
2k views

Coloring indentation levels

Consider the following two snapshots: The first below is coming from Emacs on Python mode (with Jedi & Elpy) This second one below comes from manually photoshopping the previous one to make it ...
Amelio Vazquez-Reina's user avatar