an Emacs presentation feature that alters the appearance of a buffer’s text on the screen, without changing the buffer content
Questions tagged [overlays]
67 questions
28
votes
2 answers
What are overlays for, and how do they differ from text properties?
The manual states:
You can use overlays to alter the appearance of a buffer's text on the
screen, for the sake of presentation features.
From its name, it suggests it can be used to create “layers” over existing text, but the description above…

Sébastien Le Callonnec
- 1,087
- 11
- 21
21
votes
2 answers
Display list of words along bottom of frame?
I'd like to display 3 lists of words on separate lines horizontally along the bottom (although top would work too) of every emacs frame I have open. I've thought of 6 ways to do this, and they all have issues:
My first thought was to add a line to…

Joseph Garvin
- 2,061
- 8
- 21
12
votes
5 answers
Ways to unobtrusively vary text rendering?
I'm writing an emacs extension for use with speech recognition, and I'm looking for help with a particular feature. Some words the speech recognizer (Dragon) recognizes consistently poorly -- it doesn't matter how many times you train it, it will…

Joseph Garvin
- 2,061
- 8
- 21
10
votes
2 answers
How to display overlay like this screencast?
How to make an overlay in Emacs like the following (maybe it's not overlay, I don't know, it's from company-coq inline-docs):

stardiviner
- 1,888
- 26
- 45
9
votes
2 answers
Temporary text in window location with no text to propertize/overlay?
Q: how do I temporarily show text in a window at screen locations with no text to propertize/overlay?
I'm familiar with the basic idea behind text properties and overlays (see also this thread), have used them a few times, but am by no means adept…

Dan
- 32,584
- 6
- 98
- 168
7
votes
1 answer
Theme background with opacity? Or theme callback?
Two related questions
Is it possible to use opacity while theming in emacs? I mean defining theme which - for example - would add 25% of blue to the background color of elements it is applied to. Or which would make font 30% lighter.
Or, if…

Mekk
- 1,017
- 7
- 14
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
5
votes
2 answers
How to apply overlay or text properties to text matching a regexp?
I want to transform a text file with many lines :
| refXXXXX | here useful text, first sentence, last word. |
| refYYYYY | First word, second sentence. |
into :
here useful text, first sentence, last word. First word, second…

JeanMichel
- 355
- 2
- 10
5
votes
0 answers
Copy buffer content verbatim
Emacs uses overlays / prettify-symbols-mode / etc which modify how data is displayed to user.
I like to copy visible content as I see it. For example I aligned columns in CSV file with M-x csv-align-fields but content is copied as it in file (with…

gavenkoa
- 3,352
- 19
- 36
5
votes
1 answer
display eldoc help info behind point
I have the following code to replace default eldoc display function:
(defun my-eldoc-display-message-momentary (format-string &rest args)
"Display eldoc message near point."
(when format-string
;; (pos-tip-show (apply 'format…

stardiviner
- 1,888
- 26
- 45
4
votes
1 answer
How can I eliminate the side effect of left margin?
I've set a left margin like this:
(set-window-margins (get-buffer-window) 20 0)
(let ((gutter-sep (concat (make-string (- (car (window-margins (get-buffer-window))) 2) ? ) "+")))
(propertize "." 'display `((margin left-margin) ,gutter-sep)…

Amos
- 456
- 3
- 11
4
votes
1 answer
Forbid inserting text before and after overlay
Is there any way to forbid insertion of text before and after specific overlay? (I mean on the same line that displays overlay.) Forbid means that either changes cancelled somehow or immediately reverted, or something like this. I'm ready to…

Mark Karpov
- 4,893
- 1
- 24
- 53
4
votes
2 answers
Concatenate multiple 'help-echo strings
I have multiple overlays with 'help-echo strings covering the same region.
Can I make Emacs show all these strings in the mouseover tooltip? By default it only shows the one coming from the highest priority overlay.
EDIT: The context is FlyCheck: a…

Clément
- 3,924
- 1
- 22
- 37
3
votes
2 answers
Move point inside of image overlay
I'm trying to create a realtime/WYSIWYG editor for LaTeX fragments -- the general idea is that at each move of point / edit of the fragment, the overlay should update to reflect the newly changed fragment, including a cursor symbol indicating where…

Cardano
- 163
- 6
3
votes
0 answers
Can I get emacs to display a grid?
The question is if there's anything like a "background display mode" or maybe a package that once installed would allow a background grid to be displayed in the editor window. The Eclipse IDE for e.g. manages to display thin dotted lines to mark…

Cris6556
- 31
- 2