emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [correction]


From: Juan Manuel Macías
Subject: Re: [correction]
Date: Mon, 31 Oct 2022 16:23:58 +0000

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.

Best regards,

Juan Manuel 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]