From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Keyboard command to force "done"
Date: Thu, 11 Oct 2012 09:30:42 -0500 [thread overview]
Message-ID: <CAC=HedCQnMM+8N8fir=3LoV_t1Uvut5DFDRSv1zmQpVmErEKFA@mail.gmail.com> (raw)
Hello,
I'd like to create a keyboard shortcut to set a TODO
state to "done" and ignore any dependencies/blocking (like todo items
in subheadings, or checkboxes).
From the documentation for (org-todo) I see that I need to specify
the argument prefix of C-u C-u C-u
I have other keyboard shortcuts that do this also, but I can't successfully call
org-todo with a "done" argument. Can anyone correct this function to be able
to specify "done" as an argument to 'org-todo?
(defun njn/force-done ()
(interactive)
(setq current-prefix-arg '(64)) ; specify universal argument as
C-u C-u C-u (4*4*4)
(call-interactively 'org-todo)) ; don't know the syntax to pass
'done to 'org-todo
)
Thanks,
--Nate
next reply other threads:[~2012-10-11 14:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-11 14:30 Nathan Neff [this message]
2012-10-24 14:21 ` Keyboard command to force "done" Bastien
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='CAC=HedCQnMM+8N8fir=3LoV_t1Uvut5DFDRSv1zmQpVmErEKFA@mail.gmail.com' \
--to=nathan.neff@gmail.com \
--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.