[O] killing all contents of a headline

2013-02-19 Thread 42 147
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)?

Re: [O] killing all contents of a headline

2013-02-19 Thread Marcel van der Boom
On Tue 19-Feb-2013 06:01 42 147 aeus...@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

Re: [O] killing all contents of a headline

2013-02-19 Thread Bastien
42 147 aeus...@gmail.com writes: 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)? C-c @ C-w When using speedy commands (setq org-use-speed-commands t) . C-w at the beginning of a headline. I'm

Re: [O] killing all contents of a headline

2013-02-19 Thread Suvayu Ali
On Tue, Feb 19, 2013 at 01:09:30PM +0100, Bastien wrote: When using speedy commands (setq org-use-speed-commands t) . C-w at the beginning of a headline. I'm willing to update the . speedy command and use @ instead to be consistent with the C-c @ command. Yes that would be good. To

Re: [O] killing all contents of a headline

2013-02-19 Thread 42 147
Suvayu Ali fatkasuvayu+li...@gmail.com writes: to be consistent with the C-c @ command. Yes that would be good. To save you some work, I attached a patch. Precisely what I was looking for. I'm always up for macro creation, but I didn't want to do so if a command already existed. Always

Re: [O] killing all contents of a headline

2013-02-19 Thread Bastien
Hi Suvayu, Suvayu Ali fatkasuvayu+li...@gmail.com writes: Yes that would be good. To save you some work, I attached a patch. Applied, thanks a lot! -- Bastien

Re: [O] killing all contents of a headline

2013-02-19 Thread Bastien
Hi John, 42 147 aeus...@gmail.com writes: The @ replacement is also a sensible idea -- can either of you send me the source code for this? Or how would I update my org-mode to include it? If you want to use Org development branch, simply clone and build: ~$ git clone

Re: [O] killing all contents of a headline

2013-02-19 Thread Suvayu Ali
On Tue, Feb 19, 2013 at 11:40:31AM -0500, 42 147 wrote: The @ replacement is also a sensible idea -- can either of you send me the source code for this? Or how would I update my org-mode to include it? Take a look at the following FAQ and the two after:

Re: [O] killing all contents of a headline

2013-02-19 Thread 42 147
Thanks, the update worked, however with some post-update oddities: org-hide-leading stars t hides the stars -- but only if I manually switch from the Emacs default color theme to my favorite one (color-theme-renegade). If I leave (color-theme-renegade) in my init, on boot-up, org-mode does not