Questions tagged [highlighting]
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.
186 questions
2
votes
1
answer
332
views
Highlight everything after 500 characters
I want to add to change the font color for every character appearing in a buffer after 500 characters.
So, if this were for 10 characters for demonstration purposes, I want to see (using inline code ...
0
votes
0
answers
53
views
eshell colorize diff output via highlighting
so far on my windows machine I am not able to get colored lines for diffs in eshell
This would be crucial for me to use it as my goto git tool as I prefer not to use magit.
With
(defun tietan/hs-diff-...
1
vote
1
answer
71
views
highlight full word
I'm trying to make word highlighting in emacs.
Let's take the example: "fix the radio. radio fixed."
I want to highlight the word "fix", but not the first three letters of the word ...
0
votes
2
answers
123
views
How to flash (pulse) the entire line real-estate and not just till the end of the text?
I wrote something like this which I thought will work since it will include the newline.
(defun flash-current-line ()
(interactive)
(pulse-momentary-highlight-overlay
(make-overlay
(line-...
1
vote
1
answer
66
views
How to apply different whitespace settings for different buffer portions?
Does the minor mode whitespace library provide any way to apply different settings to different portions of the same buffer? For example, I might like to highlight `TAB characters in a comment block, ...
2
votes
1
answer
63
views
Highlight prettified code
is there a way of highlighting a prettified phrase? Something like:
(push '("\\qquad " . "⧢") prettify-symbols-alist)
(highlight-phrase "⧢" 'shadow)
(highlight-...
1
vote
1
answer
204
views
Jump/Goto next highlighted symbol in lsp-mode
Lsp-mode has a function lsp-document-highlight bound by default to s-l a h which picks the symbol at point and highlights all (semantic) occurrences.
Is there a goto-next-highlight. I checked the ...
0
votes
1
answer
71
views
Temporary highlighting of regexp
In Emacs 26 I had this working macro:
(defmacro with-temp-highlights (&rest body)
"It executes BODY, undoing, upon completion, all the highlighters
used, but leaving pre-existing ...
0
votes
0
answers
34
views
Highlighted text not visible on Emacs manuals not visible on HPC
I installed GNU Emacs on a headless High-Performance-Cluster (Ubuntu 18.04). My emacs configuration is: init.el.
I installed emacs using conda: conda install -c conda-forge emacs
The same ...
1
vote
4
answers
195
views
search or occur for text with a certain face, or character properties?
I'm interested in finding zero-width spaces and similar "glyphless" characters in my buffer -- and more generally, text that's highlighted or has a certain face.
I can show zero-width spaces ...
0
votes
1
answer
80
views
Changing highlighting of headings interactively
I would like to have the ability to interactively change the highlighting settings using a single function (named outline-activate). How can I adapt it for the task described?
(defun outline-activate ...
1
vote
1
answer
78
views
bookmark+ highlighting problem
I am trying to use bookmark+, but I am unable to get the highlighting as I wish (or, maybe, as I wrongly expect?):
When I change the default highlight of a bookmark, I only see the purple flag, but ...
0
votes
1
answer
56
views
Is there a package that would allow me to colorize non-alphanumeric characters (the symbols)?
By non-alphanumeric characters, it includes the period, comma, colon, semi-colon, plus/minus sign, star sign, slashes, percentage sign, and any other that are normally used for mathematical operators ...
1
vote
1
answer
98
views
how to config highlight style in spacemacs as sublimetext did?
I used highlight-symbol to show all selected text in spacemacs, but that looks not very good as sublime text did as following pic:
My question is that if spacemacs could use box style without color ...
0
votes
2
answers
184
views
Why doesn’t highlight-regexp highlight my regexp?
When I evaluate (highlight-regexp "todo" "hi-blue") in a buffer, “todo” gets highlighted in that buffer.
I’d like “todo” to be highlighted in any buffer, always.
I’ve tried putting ...