From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: org-mode without stars Date: Wed, 26 Jan 2011 09:57:22 -0700 Message-ID: References: <20110123032132.GM25446@bshanks.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=44213 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pi8gP-0007OY-Nr for emacs-orgmode@gnu.org; Wed, 26 Jan 2011 11:57:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pi8gO-0002qT-7D for emacs-orgmode@gnu.org; Wed, 26 Jan 2011 11:57:25 -0500 Received: from mail-gw0-f41.google.com ([74.125.83.41]:32994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pi8gO-0002qF-4h for emacs-orgmode@gnu.org; Wed, 26 Jan 2011 11:57:24 -0500 Received: by gwj22 with SMTP id 22so269004gwj.0 for ; Wed, 26 Jan 2011 08:57:22 -0800 (PST) In-Reply-To: <20110123032132.GM25446@bshanks.dyndns.org> 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: Bayle Shanks Cc: emacs-orgmode@gnu.org Hi Bayle, On 2011-01-22, Bayle Shanks wrote: > get new laptop > > organize interstellar dust meeting > book the meeting room > organize LOC > Invited speakers > - Draine > - Tielens > - Hollenbach > 1st announcement > > fix the bell in the hall I indent by spaces by 2 a lot to save typing. c-c - and c-c * will convert. They do not handle indentation, but that might be a very useful feature (I would use it too). This does handle indentation. I wrote it a very long time ago for a different, 8-space indentation. (defun alpha-orgify () "quick hack. create org format from my indented outline format, which consists of 8-space indentation. operate on the region. assume a certain number of stars and odd levels." (interactive) (let ((b (region-beginning)) (e (region-end)) ;;manually mod for now. headline vs. bullet. (bulletp nil)) (loop while (progn (save-excursion ;;use (re-)search-forward and replace-match when no query? i'd ;;prefer without the pattern (i.e. just ^) but you might be ;;re-orgifying an already-orgified region. btw match-string is ;;how you get the string. (perform-replace "^\\([^*]\\)" (if bulletp " \\1" "*** \\1") t ;interactive t nil nil nil b e)) (save-excursion (perform-replace " " (if bulletp " " "**") t ;interactive t nil nil nil b e)) (when bulletp (progn ;;how to make it greedy? (perform-replace "^\\( +\\)\\([^ ]\\)" "\\1- \\2" t ;interactive t nil nil nil))))))) Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html I support the Whittemore-Peterson Institute (WPI) === I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.