all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: [correction]
Date: Mon, 31 Oct 2022 21:01:39 +0000	[thread overview]
Message-ID: <87edun90dh.fsf@posteo.net> (raw)
In-Reply-To: <87edun28r9.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 31 Oct 2022 18:38:50 +0100")

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))))

(font-lock-add-keywords
 'dired-mode
 '((overlay-dired-filetags (0  'font-lock-keyword-face t)))
 t)


  reply	other threads:[~2022-10-31 21:03 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-30  9:49 org-fstree.el overview over directories (but no comments are possible) Uwe Brauer
2022-10-30 12:52 ` Juan Manuel Macías
2022-10-30 13:10   ` Uwe Brauer
2022-10-30 13:56     ` Juan Manuel Macías
2022-10-30 14:01       ` Uwe Brauer
2022-10-30 15:40         ` Juan Manuel Macías
2022-10-30 16:42           ` Uwe Brauer
2022-10-30 17:16       ` Uwe Brauer
2022-10-30 18:17         ` Juan Manuel Macías
2022-10-30 18:48           ` Uwe Brauer
2022-10-30 19:04             ` Juan Manuel Macías
2022-10-30 19:21               ` Uwe Brauer
2022-10-30 19:26                 ` [correction] (was: org-fstree.el overview over directories (but no comments are possible)) Uwe Brauer
2022-10-30 19:51                   ` [correction] Juan Manuel Macías
2022-10-30 21:23                     ` [correction] Uwe Brauer
2022-10-31 12:22                       ` [correction] Juan Manuel Macías
2022-10-31 12:55                         ` [correction] Uwe Brauer
2022-10-31 15:08                           ` [correction] Juan Manuel Macías
2022-10-31 15:48                             ` [correction] Uwe Brauer
2022-10-31 16:23                               ` [correction] Juan Manuel Macías
2022-10-31 16:33                                 ` [correction] Uwe Brauer
2022-10-31 16:58                                 ` [correction] Uwe Brauer
2022-10-31 17:35                                   ` [correction] Juan Manuel Macías
2022-10-31 17:38                                     ` [correction] Uwe Brauer
2022-10-31 21:01                                       ` Juan Manuel Macías [this message]
2022-11-01  7:13                                         ` [correction] Uwe Brauer
2022-11-01  7:16                                           ` [correction] Uwe Brauer
2022-11-01 13:52                                             ` [correction] Juan Manuel Macías

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edun90dh.fsf@posteo.net \
    --to=maciaschain@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=oub@mat.ucm.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.