emacs-devel
[Top][All Lists]
Advanced

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

Re: Alignment and images


From: Alp Aker
Subject: Re: Alignment and images
Date: Thu, 1 Sep 2016 14:10:46 -0400

On Tue, Jun 28, 2016 at 1:51 PM, Lars Magne Ingebrigtsen <address@hidden> wrote:
> So...  there is no easy way implement this in the current Emacs?  Using
> post-command-hook and keeping track of previous cursor positions seems
> kinda ... non-optimal.

If you put the spacing display property on an overlay's before- or after-string, it doesn't create a new cursor position.   So would something like the below create the effect you're looking for?

(progn
  (setq o (make-overlay 1 2)
        o2 (make-overlay 2 3))
  (overlay-put o 'display (create-image "~/rms.jpg"))
  (overlay-put o2 'before-string (propertize " " 'display '(space :align-to (200))))
  (overlay-put o2 'display (create-image "~/rms.jpg")))



reply via email to

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