emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: ajk@iu.edu (Andrew J. Korty)
To: emacs-orgmode@gnu.org
Subject: Re: tagging during creation
Date: Mon, 05 Nov 2007 05:58:21 -0500	[thread overview]
Message-ID: <m2zlxt9cxe.fsf@iu.edu> (raw)
In-Reply-To: <898963DF-3FAD-4158-BF63-AE069C36E283@science.uva.nl> (Carsten Dominik's message of "Sun\, 4 Nov 2007 14\:46\:48 +0100")

Here's what I use:

 (defun org-set-buffer-todo-tags ()
   "Set tags for all tagless TODO headings in the current buffer."
   (save-excursion
     (goto-char (point-min))
     (while (re-search-forward "\\* \\(?:TODO\\|ACTION\\|WAITING\\) " nil t)
       (let ((tags (org-get-tags)))
         (if (or (not tags) (string= tags ""))
             (org-set-tags))))))
 
 (add-hook 'remember-hook
           (lambda ()
             (define-key (current-local-map) "\x03\x03"
               (lambda ()
                 (interactive)
                 (if (string= (buffer-name (current-buffer)) "*Remember*")
                     (org-set-buffer-todo-tags))
                 (org-ctrl-c-ctrl-c)))))

-- 
Andrew J. Korty, Deputy Information Security Officer
Office of the Vice President for Information Technology and CIO
Indiana University

      reply	other threads:[~2007-11-05 10:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31 12:39 tagging during creation Richard G Riley
2007-10-31 14:04 ` Bastien
     [not found]   ` <pszlxzfl9n.fsf@home.net>
2007-10-31 15:17     ` Bastien
2007-11-04  7:22       ` Carsten Dominik
2007-11-04 13:05         ` Bastien
2007-11-04 13:46           ` Carsten Dominik
2007-11-05 10:58             ` Andrew J. Korty [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zlxt9cxe.fsf@iu.edu \
    --to=ajk@iu.edu \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).