I use emacs with org- and helm-mode in windows, and I store my agenda files in my /journal/ directory:
(setq org-agenda-files '("C:/Users/.../journal/")).

My agenda files mainly contain notes, structured under one or more headlines within each file, and with one or more tag added to each headline. A headline can thus look like this:
* My note for thursday :family:car:expences: where the single tags are within a pair of colons.

If I use the command M-x org-tags-view I get a list for all tags used in all the .org files in my /journal/ directory. This global tags list would have been great to have access to when I am tagging headlines inside a single .org file.

However, when I use the command M-x org-set-tags, when my point is within a headline, the resulting helms output is a local tags list, i.e. a list of tags collected only from within the single file I am about to tag, and containing no tags from any of the other .org files in the /journal/ directory.

I have two questions:

(1) How can I make helms give me access to the global tags list when I am tagging headlines within a single file inside my /journal/ directory?

(2) How can I easily update the global tags list if I add tags to a file that is not from within this list?

up vote 2 down vote accepted
+50

Try

(setq org-complete-tags-always-offer-all-agenda-tags t)

I don't think you can easily add to this list from non-agenda files.

  • Thanks, that worked, though not exactly as I wanted :) When pressing the tab I get a list in helm with tag-words collected from my agenda files. But I cannot select several of these tags by pressing the space bar down the list. Do you know if that is possible with some setting? – myotis Dec 15 '16 at 19:13
  • it looks like helm does not allow marking in that source. You would probably need to write your own source to make it possible. Also, your action function then has to work on (helm-marked-candidates). – John Kitchin Dec 17 '16 at 1:44

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.