The above code has problems when you try editing the heading
near the
end of the title (before the :align-to space). Especially when
the
window is narrow. Also, when `org-auto-align-tags' is nil.
Not that they cannot be solved, but it is not just as trivial as
the
above code.
Thanks, I
"Nicolas P. Rougier (inria)" writes:
> I'm using font lock to have tags right aligned with the following
> code:
>
> ;; Right alignment (char wise)
> (add-to-list 'font-lock-extra-managed-props 'display)
> (font-lock-add-keywords 'org-mode
> `(("^\\*+.*?\\( \\)\\(:[[:alnum:]_@#%:]+:\\)$"
>
Hello,
I'm using font lock to have tags right aligned with the following
code:
;; Right alignment (char wise)
(add-to-list 'font-lock-extra-managed-props 'display)
(font-lock-add-keywords 'org-mode
`(("^\\*+.*?\\( \\)\\(:[[:alnum:]_@#%:]+:\\)$"
(1 `(face nil
display