all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Victor A. Stoichita" <victor@svictor.net>
To: emacs-orgmode@gnu.org
Subject: org-tag-persistent-alist AND per-file dynamic tags
Date: Sat, 06 Nov 2021 10:10:55 +0100	[thread overview]
Message-ID: <87ilx5ws5j.fsf@svictor.net> (raw)

Greetings to all,

Reading the manual about setting glopal/per-file tags [1], I wonder if
it is possible to use org-tag-persistent-alist AND per-file
dynamic tags.

When using org-set-tags-command, I’d like to select from a list
comprising both:
1. the list of predefined tags in org-tag-persistent-alist
2. the list of all the tags that are already in use in the current
   buffer (some of which might not be in the persistent alist). I don’t
   want to use the #+TAGS keyword at file-level, just the list of tags
   already attached to some headline in the buffer.

The manual says:
> If you have globally defined your preferred set of tags using the
> variable org-tag-alist, but would like to use a dynamic tag list in
> a specific file, add an empty ‘TAGS’ keyword to that file

And then it says:
> If you have a preferred set of tags that you would like to use in every
> file, in addition to those defined on a per-file basis by ‘TAGS’
> keyword, then you may specify a list of tags with the variable
> org-tag-persistent-alist.

I tried to combine both behaviors by putting an empty ’TAGS’ keyword at
the top of my file. But this still only gives me the tags in
org-tag-persistent-alist. What would be the best way to add to it for
completion the tags already used in the buffer?

Regards,
Victor

Footnotes:
[1]  https://orgmode.org/manual/Setting-Tags.html



             reply	other threads:[~2021-11-06  9:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-06  9:10 Victor A. Stoichita [this message]
2021-11-29  3:49 ` org-tag-persistent-alist AND per-file dynamic tags chris
2021-12-09 19:35   ` Victor A. Stoichita

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=87ilx5ws5j.fsf@svictor.net \
    --to=victor@svictor.net \
    --cc=emacs-orgmode@gnu.org \
    /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.