emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Automatic global tag list?


From: Sébastien Vauban
Subject: [Orgmode] Re: Automatic global tag list?
Date: Wed, 24 Nov 2010 09:38:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Matt,

Matt Lundin wrote:
> Have you tried the following setting?
>
> (setq org-complete-tags-always-offer-all-agenda-tags t)
>
>> BTW, where is the documentation? I'm using orgmode 7.03, perhaps it's
>> not documented there?
>
> C-h f org-global-tags-completion-table.

C-h v org-complete-tags-always-offer-all-agenda-tags says:

    ,----
    | org-complete-tags-always-offer-all-agenda-tags is a variable defined in 
`org.el'.
    | Its value is nil
    | 
    | Documentation:
    | If non-nil, always offer completion for all tags of all agenda files.
    | Instead of customizing this variable directly, you might want to
    | set it locally for remember buffers, because there no list of
    | tags in that file can be created dynamically (there are none).
    | 
    |   (add-hook 'org-remember-mode-hook
    |             (lambda ()
    |               (set (make-local-variable
    |                     'org-complete-tags-always-offer-all-agenda-tags)
    |                    t)))
    | 
    | You can customize this variable.
    | 
    | [back]
    `----

(didn't know about that var)

You see that one should sed 's/remember/capture/g'.

--8<---------------cut here---------------start------------->8---
--- INDEX:/lisp/org.el
+++ WORKDIR:/lisp/org.el
@@ -2732,10 +2732,10 @@ To disable these tags on a per-file basis, insert 
anywhere in the file:
 (defcustom org-complete-tags-always-offer-all-agenda-tags nil
   "If non-nil, always offer completion for all tags of all agenda files.
 Instead of customizing this variable directly, you might want to
-set it locally for remember buffers, because there no list of
+set it locally for capture buffers, because there no list of
 tags in that file can be created dynamically (there are none).
 
-  (add-hook 'org-remember-mode-hook
+  (add-hook 'org-capture-mode-hook
             (lambda ()
               (set (make-local-variable
                     'org-complete-tags-always-offer-all-agenda-tags)
--8<---------------cut here---------------end--------------->8---

It seems there are a lot more references to remember, but I'm not sure which
can be safely removed.

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

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