[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [correction]
From: |
Uwe Brauer |
Subject: |
Re: [correction] |
Date: |
Mon, 31 Oct 2022 17:58:45 +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:
>> %% does not work for auctex, so I think I try @@, I hope it does not collide
>> with anything fancy......
> You can also set a text string, like _ftags_, and to hide it when you're
> in Dired, add a function to the dired-mode-hook that displays an overlay
> instead of that string, with some fancy unicode symbol separated by
> spaces. Something like this:
> (defun overlay-dired-filetags ()
> (save-excursion
> (goto-char (point-min))
> (while
> (re-search-forward "\\(_ftag_\\)" nil t)
> (let
> ((ov (make-overlay (match-beginning 1) (match-end 1)))
> (tag (propertize " ⚜ " 'face 'bold)))
> (overlay-put ov 'overlay-tag t)
> (overlay-put ov 'display tag)))))
> However, in large directories I don't know how that would affect
> performance.
Hm I tried out
(defun overlay-dired-filetags ()
(save-excursion
(goto-char (point-min))
(while
(re-search-forward "\\(_ftag_\\)" nil t)
(let
((ov (make-overlay (match-beginning 1) (match-end 1)))
(tag (propertize " ⚜ " 'face 'bold)))
(overlay-put ov 'overlay-tag t)
(overlay-put ov 'display tag)))))
(add-hook 'dired-mode-hook 'overlay-dired-filetags)
But
my-auctex-init_ftag_emacs.el
Still gets displayed as
my-auctex-init_ftag_emacs.el
What do I miss?
smime.p7s
Description: S/MIME cryptographic signature
- Re: org-fstree.el overview over directories (but no comments are possible), (continued)
- Re: org-fstree.el overview over directories (but no comments are possible), Uwe Brauer, 2022/10/30
- [correction] (was: org-fstree.el overview over directories (but no comments are possible)), Uwe Brauer, 2022/10/30
- Re: [correction], Juan Manuel Macías, 2022/10/30
- Re: [correction], Uwe Brauer, 2022/10/30
- Re: [correction], Juan Manuel Macías, 2022/10/31
- Re: [correction], Uwe Brauer, 2022/10/31
- Re: [correction], Juan Manuel Macías, 2022/10/31
- Re: [correction], Uwe Brauer, 2022/10/31
- Re: [correction], Juan Manuel Macías, 2022/10/31
- Re: [correction], Uwe Brauer, 2022/10/31
- Re: [correction],
Uwe Brauer <=
- Re: [correction], Juan Manuel Macías, 2022/10/31
- Re: [correction], Uwe Brauer, 2022/10/31
- Re: [correction], Juan Manuel Macías, 2022/10/31