Re: Tags right alignment with font-lock

2023-12-08 Thread Nicolas P. Rougier (inria)
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

Re: Tags right alignment with font-lock

2023-12-08 Thread Ihor Radchenko
"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:]_@#%:]+:\\)$" >

Tags right alignment with font-lock

2023-12-05 Thread Nicolas P. Rougier (inria)
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