>>> "JMM" == Juan Manuel Macías <maciasch...@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?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to