is for changes to fonts and colors for highlighting text. Emacs uses highlighting extensively to set apart portions of visible text in a buffer. Highlighting can also apply to dynamic text during search and replace operations, syntax highlighting in programming modes, and for alerts for errors during debugging.
Questions tagged [highlighting]
179 questions
30
votes
4 answers
How to unhighlight symbol highlighted with highlight-symbol-at-point
highlight-symbol-at-point is really useful however I could not find an easy way to un-highlight symbols.
Currently I have to call unhighlight-regexp repeatedly for each highlighted symbol.
Is there a better way to:
unhighlight all highlighted…

kostya
- 503
- 4
- 6
16
votes
1 answer
Is there a plugin that does color HTML matching tags like rainbow delimiters?
I would like some plugin which colors html tags with a corresponding color based on which tag they match. For example
and
would be highlighted the same color while and
would be highlighted the same color,…
Octopuscabbage
- 161
- 2
13
votes
1 answer
Highlighting missing references
Is it possible for auctex to display missing references differently to ones which are in the bib file? Currently, all references look identical so it's impossible to tell at a glance which citation keys are defined in the bib file, and which are…

cazgp
- 231
- 1
- 3
13
votes
2 answers
Change highlight color when window isn't in focus?
I'm using hl-mode as a minor mode for deft. How do I make the highlighted line change color (e.g. to gray) when the deft window isn't the current window, and then back to the default highlight color when the deft window becomes the current window…

shankar2k
- 173
- 1
- 6
12
votes
3 answers
Highlight region
How do I highlight a region and it make it remain highlighted when point moves on.
Why would I want that? So I can make important snippets of code stand out when I review it later.

Kian
- 223
- 2
- 6
12
votes
1 answer
How to highlight current line only in selected window?
Q: is there a way to have hl-line-mode highlight the current line
only in the selected window?
When I have multiple windows showing buffers with hl-line-mode
on, it is difficult to tell, at a glance, which window is
current.
I have the variable…

Dan
- 32,584
- 6
- 98
- 168
9
votes
3 answers
Highlight current line without changing colours
I use (global-hl-line-mode 1) in order to highlight the current line.
This changes the text colours of the highlighted line. Is it possible to highlight while keeping the current syntax highlighting colours (so changing only the background)?

Nisba
- 895
- 8
- 19
8
votes
2 answers
Org mode quote block indentation (highlighting)
Can indentation of the Org mode quote block be configured? I would like to highlight quote blocks with indented margins, both left and right if possible:
The example above demonstrates org-quote face properties (e.g.: :height :foreground, etc.)…

Snelephant
- 814
- 1
- 7
- 17
8
votes
4 answers
Turn off mouse highlighting in org-agenda
When I am viewing my org-agenda, whatever line I have the mouse point on is highlighted. Since I never act on these lines with the mouse, and since the line where point is is also highlighted, the extra highlighting is distracting and confusing.…

elethan
- 4,755
- 3
- 29
- 56
8
votes
0 answers
How to indicate the currently clocked-in task?
I'm using org-mode's clocking functions to track the hours I spend on projects. Since my main org file is rather large and I scroll through it a lot, it would be great to have a visual cue of the task that's currently clocked in.
Ideally some…

ph0t0nix
- 1,119
- 13
- 28
7
votes
2 answers
How to highlight preceeding space-indentation that isn't rounded to current width?
Is there a way to highlight (set the background color for example) the space before a line, when it's indentation isn't aligned to the current indentation-width?
4 spaces indentation for eg:
fn my_func() {
if foo() {
##bar();
…

ideasman42
- 8,375
- 1
- 28
- 105
7
votes
1 answer
Line highlighting canceling out syntax highlighting
I use hl-line-mode and I really like the built-in misterioso theme. However, the way that lines are highlighted with this theme cancels out syntax highlighting or any other properties of the highlighted lines, as can be seen in this screenshot.…

elethan
- 4,755
- 3
- 29
- 56
7
votes
1 answer
How to highlight specific keywords inside strings/quotes?
I have another syntax highlighting for SQL keywords inside strings (inside quotes) in VIM. It looks like this:
Then in Emacs with PHP-mode, everything between quotes (') will be considered as a string by the font lock:
As you can see, the first…

ReneFroger
- 3,855
- 22
- 63
7
votes
1 answer
How to highlight text based on regions--not regular expresions
When font-lock-mode is enabled I cannot get custom faces to stick with add-text-properties or set-text-properties. I've looked through libraries like hi-lock.el, but they all seem to be regexp based. I want to highlight by points; (point) to…

user8523
- 73
- 2
6
votes
1 answer
minor mode to display long integers?
I have to deal with long integers frequently, typically 9+ digits, and all of the digits matter (so scientific notation doesn't help me. Is there a minor mode that helps make it easier to visually scan such numbers? I encounter these numbers both…

petermao
- 83
- 4