summaryrefslogtreecommitdiff
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorEshel Yaron <me@eshelyaron.com>2025-01-09 12:22:03 +0100
committerEshel Yaron <me@eshelyaron.com>2025-01-09 13:45:18 +0100
commit81cf42c8af75b9ee2f2cee36254e3286b2077cbc (patch)
treecb3247c1861d1b69b80a76d5b38baf0510c9adcf /lisp/cus-edit.el
parent0edafe0fb6bb3df4fed09eb345b690fbce2c01bb (diff)
downloademacs-81cf42c8af75b9ee2f2cee36254e3286b2077cbc.tar.gz
emacs-81cf42c8af75b9ee2f2cee36254e3286b2077cbc.tar.bz2
emacs-81cf42c8af75b9ee2f2cee36254e3286b2077cbc.zip
Auto-adapt completion preview background color
Teach Completion Preview mode to automatically remap its faces such that the background color of the preview overlay matches the background color of the buffer text that is being completed. Crucially, this resolves an issue where the preview overlay didn't look nice with hl-line-mode on. Also see related discussion in bug#71282. * lisp/completion-preview.el (completion-preview-adapt-background-color): New option. (completion-preview--bg-color): New function. (completion-preview--face-remap-cookie-jar): New variable. (completion-preview--make-overlay): Use them.
Diffstat (limited to 'lisp/cus-edit.el')
0 files changed, 0 insertions, 0 deletions