[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [correction]
From: |
Uwe Brauer |
Subject: |
Re: [correction] |
Date: |
Tue, 01 Nov 2022 08:13:53 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "JMM" == Juan Manuel Macías <maciaschain@posteo.net> writes:
> Uwe Brauer writes:
>> Don't worry, for the moment _@@ is fine for me
> I think with font-lock-add-keywords it should work. I have put another
> overlay on the tags, so that they are seen inside a box, separated by
> ":".
> (defun overlay-dired-filetags (&optional lim)
> (when
> (re-search-forward "\\(_ftag_\\)\\(.+\\)" lim t)
> (let
> ((ov (make-overlay (match-beginning 1) (match-end 1)))
> (tag (propertize " ⚜ " 'face 'bold))
> (ov-2 (make-overlay (match-beginning 2) (match-end 2)))
> (tags (propertize (replace-regexp-in-string
> "_"
> ":"
> (match-string 2))
> 'font-lock-face
> '(:foreground "red" :box t))))
> (overlay-put ov 'overlay-tag t)
> (overlay-put ov 'display tag)
> (overlay-put ov-2 'overlay-tag-2 t)
> (overlay-put ov-2 'display tags))))
*Excellent* works very nicely. Thanks very much, the only change I did
was
(tag (propertize " 🎃 " 'face 'bold))
It is better visible, and more fitting since you sent me the final
version on Halloween 👹
Now it remains to configure helm-locate, so that it takes a local
database that I can run regularly without sudo..
Thanks very much that was very helpful
Uwe
--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
smime.p7s
Description: S/MIME cryptographic signature
- Re: [correction],
Uwe Brauer <=