From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marvin Doyley Subject: Re: text to plain list Date: Fri, 22 Jun 2012 18:23:37 -0400 Message-ID: <3508672923438786937@unknownmsgid> References: <5024.1340398939@alphaville> <87ehp7e3fn.fsf@gmx.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiCGV-0006oA-PI for emacs-orgmode@gnu.org; Fri, 22 Jun 2012 18:23:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiCGT-0005Ih-PF for emacs-orgmode@gnu.org; Fri, 22 Jun 2012 18:23:43 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:62718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiCGT-0005IZ-FV for emacs-orgmode@gnu.org; Fri, 22 Jun 2012 18:23:41 -0400 Received: by lbjn8 with SMTP id n8so5042580lbj.0 for ; Fri, 22 Jun 2012 15:23:39 -0700 (PDT) In-Reply-To: <87ehp7e3fn.fsf@gmx.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: "nicholas.dokos@hp.com" , "emacs-orgmode@gnu.org" Thanks Erick for introducing me to emacs macros Cheers M Sent from my iPhone On Jun 22, 2012, at 5:23 PM, Eric Schulte wrote: > Nick Dokos writes: > >> Marvin Doyley wrote: >> >>> Hi there, >>> >>> Is there quick method for converting a bunch of text to plain list ? >>> >> >> Something like >> >> sed 's/^/- /' in.txt > out.txt >> >> perhaps? If that's not what you mean, what do you mean? >> > > I find Emacs Macros work very well for this. > > 1) position the cursor at the front of the first line > 2) C-x ( to start recording a macro > 3) manually turn this item into a list > 4) position the cursor at the front of the next line > 5) C-x ) to finish recording a macro > 6) X-e to run the macro on the second item > > after that you may continue pressing "e" to re-run the macro, or run the > macro any number of times with a numeric prefix argument. This does > however require some regularity in your list items. > > Best, > > -- > Eric Schulte > http://cs.unm.edu/~eschulte