Skip to main content

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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
332 views

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 ...
Alex Nelson's user avatar
0 votes
0 answers
53 views

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-...
Tietan's user avatar
  • 180
1 vote
1 answer
71 views

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 ...
alexandre's user avatar
0 votes
2 answers
123 views

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-...
scribe's user avatar
  • 1,160
1 vote
1 answer
66 views

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, ...
RoUS's user avatar
  • 121
2 votes
1 answer
63 views

is there a way of highlighting a prettified phrase? Something like: (push '("\\qquad " . "⧢") prettify-symbols-alist) (highlight-phrase "⧢" 'shadow) (highlight-...
Alois Pichler's user avatar
1 vote
1 answer
204 views

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 ...
Harald's user avatar
  • 404
0 votes
1 answer
71 views

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 ...
Gabriele's user avatar
  • 1,720
0 votes
0 answers
34 views

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 ...
Raghav Arora's user avatar
1 vote
4 answers
195 views

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 ...
Dan Drake's user avatar
  • 809
0 votes
1 answer
80 views

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 ...
Dilna's user avatar
  • 1,473
1 vote
1 answer
78 views

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 ...
scfrank's user avatar
  • 13
0 votes
1 answer
56 views

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 ...
nougako's user avatar
  • 139
1 vote
1 answer
98 views

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 ...
qbai's user avatar
  • 23
0 votes
2 answers
184 views

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 ...
Philippe-André Lorin's user avatar

15 30 50 per page
1
2 3 4 5
13