[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] tagging during creation
From: |
Bastien |
Subject: |
Re: [Orgmode] tagging during creation |
Date: |
Wed, 31 Oct 2007 15:17:38 +0000 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) |
Richard G Riley <address@hidden> writes:
>> (define-key org-mode-map "\C-cc" 'org-set-tags)
>>
>> HTH,
>
> And how to do with the proper tags interface showing "tab for free" etc
> so I can see the existing tags to choose from ? e.g as you currently get
> when you hit C-c C-c C-c in an org file.
`org-set-tags' won't use the fast selection interface unless it knows
about a pre-defined set of available tags. Since you cannot set this
directly in the org-remember buffer, you need to use `org-tag-alist':
See the manual (info "(org)Setting tags"):
(setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
I had to make a patch to get this working with Org 5.13h, otherwise Org
would just reinitialize `org-tag-alist' each time org-mode is run, i.e.
each time a new Org buffer is open - including the remember buffer and
regardless of the fact that `org-tag-alist' has been globally defined.
Please try it and give me feedback. Thanks,
diff -u /home/guerry/elisp/testing/org/org.el
/home/guerry/elisp/testing/bzg/org.el
--- /home/guerry/elisp/testing/org/org.el 2007-10-31 15:05:32.000000000
+0000
+++ /home/guerry/elisp/testing/bzg/org.el 2007-10-31 15:05:44.000000000
+0000
@@ -4173,7 +4173,7 @@
(string-to-char (match-string 2 e)))
tgs))
(t (push (list e) tgs))))
- (org-set-local 'org-tag-alist nil)
+ (org-set-local 'org-tag-alist org-tag-alist)
(while (setq e (pop tgs))
(or (and (stringp (car e))
(assoc (car e) org-tag-alist))
Diff finished. Wed Oct 31 15:11:13 2007
--
Bastien