From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Insert TODO or plain heading depending on context
Date: Tue, 10 Aug 2010 16:41:59 -0500 [thread overview]
Message-ID: <AANLkTinsToBeoX6RzUTpLSbL-ww+nPvrKnG3NtdNuS2Q@mail.gmail.com> (raw)
In-Reply-To: <AANLkTim-PNcfbatyrvEChHi+Y-k8xE118mxJa8TMU1NS@mail.gmail.com>
Sorry for the bump -- maybe I'll phrase the question differently ----
Is there a function in org-mode that returns the TODO
status of the heading that the cursor is currently in?
Thanks,
--Nate
On Thu, Aug 5, 2010 at 10:43 AM, Nathan Neff <nathan.neff@gmail.com> wrote:
> Sorry for a rudimentary question, but someone almost certainly has
> done this before:
>
> I'd like define a function that would:
> a) Create a new heading if the cursor is on a heading or the body of a heading.
> or
> b) Create a new TODO heading if the cursor is on a TODO heading or the body
> of a TODO heading.
>
> Essentially, it would be a "smart" function to either press M-Return
> or M-S-Return,
> depending on the context.
>
> I realize I can press M-Return to always create a new heading, and
> M-S-Return to always create a new TODO, but I'd like to eliminate
> an extra keypress for the most common cases.
>
> Any ideas?
>
> Thanks,
> --Nate
>
next prev parent reply other threads:[~2010-08-10 21:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-05 15:43 Insert TODO or plain heading depending on context Nathan Neff
2010-08-10 21:41 ` Nathan Neff [this message]
2010-08-10 22:07 ` Jan Böcker
2010-08-10 22:52 ` Nathan Neff
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=AANLkTinsToBeoX6RzUTpLSbL-ww+nPvrKnG3NtdNuS2Q@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.