help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I remove effects of text properties in 'before-string


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 <address@hidden> writes:

From: Amos Bird <address@hidden>
Cc: address@hidden
Date: Mon, 23 Oct 2017 02:08:40 +0800

Hi, thanks for the code. It works! However, I tried to explicited
set 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 enough
what exactly you did.


--
Amos Bird
address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]