[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automatic completion of file tags
From: |
Bastien |
Subject: |
Re: automatic completion of file tags |
Date: |
Mon, 27 Jan 2020 12:12:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Alan,
Alan Schmitt <address@hidden> writes:
> There are no headlines in the file (it's a small note). I want to tag
> the file itself (or its content). It's mostly to help with full-text
> search (I prefix my tags with '#' so they don't occur otherwise). I
> think the notion of file tag does not really exist in org mode, but as
> there is a '+#FILETAGS:' cookie (?), I was wondering if there was
> infrastructure to help me enter the tags there.
Thanks - I now understand better.
You may want to hack something together based on this:
#+begin_src emacs-lisp
(replace-regexp-in-string "::+" ":" (mapconcat (lambda(s) (if (stringp (car s))
(car s))) org-tag-alist ":"))
#+end_src
--
Bastien