emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcel van der Boom <marcel@hsdev.com>
To: 42 147 <aeuster@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: killing all contents of a headline
Date: Tue, 19 Feb 2013 12:36:40 +0100	[thread overview]
Message-ID: <20130219123640.4d0c7702@hsdev.com> (raw)
In-Reply-To: <ppzwwosc.fsf@gmail.com>



On Tue 19-Feb-2013 06:01
42 147 <aeuster@gmail.com> wrote:

> Title is self-explanatory. Is there a command that lets me place the
> cursor on a headline and delete its contents (i.e., all of its text)?

If you have the subtree collapsed and with your point on the heading,
'org-kill-line' kills the heading plus the content below it. It is
bound to C-k by default I think.

So, a clever combination of 'org-cycle' and 'org-kill-line' could be
combined to form one command to kill a heading and its contents,
regardless of the collapsed state.

hth

marcel
-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV    -- http://www.hsdev.com
We use bitcoin!      -- http://bitcoin.org

  parent reply	other threads:[~2013-02-19 11:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-19 11:01 killing all contents of a headline 42 147
2013-02-19 11:13 ` Daimrod
2013-02-19 11:36 ` Marcel van der Boom [this message]
2013-02-19 12:09 ` Bastien
2013-02-19 15:43   ` Suvayu Ali
2013-02-19 17:02     ` Bastien
2013-02-19 16:40   ` 42 147
2013-02-19 17:05     ` Bastien
2013-02-19 20:29       ` 42 147
2013-02-19 17:11     ` Suvayu Ali

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=20130219123640.4d0c7702@hsdev.com \
    --to=marcel@hsdev.com \
    --cc=aeuster@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 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).