|
From: | Amos Bird |
Subject: | Re: How can I remove effects of text properties in 'before-string |
Date: | Mon, 23 Oct 2017 03:12:55 +0800 |
User-agent: | mu4e 0.9.19; emacs 25.3.1 |
Hi, (set-window-margins (get-buffer-window) 20 0)(setq ovstring (propertize "Hi, there!" 'face '((t (:foreground "magenta" :weight bold :inherit default))))) (overlay-put (make-overlay (point) (point)) 'before-string (propertize "." 'display `((margin left-margin) ,ovstring)))
(hl-line-mode) The margin text doesn't appear to have the "magenta" color. regards, Eli Zaretskii <eliz@gnu.org> writes:
From: Amos Bird <amosbird@gmail.com> Cc: help-gnu-emacs@gnu.org Date: Mon, 23 Oct 2017 02:08:40 +0800Hi, thanks for the code. It works! However, I tried to explicitedset face to '((t (:foreground "magenta" :weight bold :inherit default)) which doesn't. Why?Please show the entire recipe, I don't think I understand well enoughwhat exactly you did.
-- Amos Bird amosbird@gmail.com
[Prev in Thread] | Current Thread | [Next in Thread] |