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

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

Using :align-to with non-spaces


From: Alex
Subject: Using :align-to with non-spaces
Date: Sun, 08 Oct 2017 23:22:59 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Would it be a reasonable feature request to allow some usage of
:align-to with non-spaces (or to have a special display property for
alignment)? For instance, imagine one wants to align a string in the
header-line with the text area. Compare:


(setq header-line-format
      (concat (propertize " "
                          'display
                          '(space . (:align-to 0)))
              "test"))

(setq header-line-format
      (propertize "test"
                  'display
                  '(space . (:align-to 0))))

It's not a big deal, but it's makes things look cleaner, especially when
the string in question is also being propertized.

P.S. I noticed that the above does not take into account the space taken
by `display-line-numbers'.



reply via email to

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