From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: structure editing in brainstorming mode Date: Mon, 29 Dec 2008 11:36:26 -0500 Message-ID: <871vvrym45.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHL6b-0007dw-IX for emacs-orgmode@gnu.org; Mon, 29 Dec 2008 11:36:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHL6Z-0007dk-2G for emacs-orgmode@gnu.org; Mon, 29 Dec 2008 11:36:36 -0500 Received: from [199.232.76.173] (port=47480 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHL6Y-0007dh-Tz for emacs-orgmode@gnu.org; Mon, 29 Dec 2008 11:36:34 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:58591) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LHL6Y-0007iW-KZ for emacs-orgmode@gnu.org; Mon, 29 Dec 2008 11:36:34 -0500 In-Reply-To: (Rustom Mody's message of "Mon\, 29 Dec 2008 11\:28\:42 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rustom Mody Cc: emacs-orgmode@gnu.org "Rustom Mody" writes: > 1. Multiple heading demotion > > Lets say I start writing down some points maybe with/without some > additional text > * Cat > * Dog > > And now I decide to put all these into a superheading 'My Pets' > The only way I know is to enter > * My Pets > before Cat and then demote each subtree -- if there were not two but > ten I'd have to do that 10 times This sounds like a great use for a keyboard macro Hit S-Tab until you get Contents view which shows headlines only (the rest of the content is folded) and position the cursor on the first headline to be demoted C-x ( M-S-right M-x org-forward-same-level C-x ) Then just C-x e to repeat the macro and demote the current headline and move forward to the next one. If you're demoting consecutive entries then you can do C-x e for the first and just 'e' for each successive one to repeat the macro. (eg. C-x e e e e demotes this headline and the 3 following it) > > 2. Converting heading type > > Sometimes one assumes that the points are 'small' and so are entered > as + points. Thus > * Pets > + Cat > + Dog > and then at some point it emerges that the +es had better be changed > to headings that is (the requisite number of) *s. Any easy way of > doing that? You can just use query replace for this Highlight the entries to convert and then C-M-% and change '^ \+' to '**' (or '***' if you are using odd levels only) HTH, -Bernt