From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: definition lists in org-mode Date: Fri, 6 Jul 2007 12:44:40 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I6lIo-0008C1-FR for emacs-orgmode@gnu.org; Fri, 06 Jul 2007 06:44:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I6lIm-0008BS-Fv for emacs-orgmode@gnu.org; Fri, 06 Jul 2007 06:44:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6lIm-0008BP-AO for emacs-orgmode@gnu.org; Fri, 06 Jul 2007 06:44:40 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I6lIl-0007xw-J3 for emacs-orgmode@gnu.org; Fri, 06 Jul 2007 06:44:39 -0400 In-Reply-To: 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: Eddward DeVilla Cc: org-mode On Jul 6, 2007, at 0:01, Eddward DeVilla wrote: > > What I'm after here is a short statement of the question, possibly a > short statement of the answer, and the details under it so I can hide > the detail with visibility cycling on plain lists. I already kind of > do this, but it goes horribly wrong when every I try to use ESC-Q to > re-wrap the item. Don't get me wrong, I'd use a plain definition list > too if it were there. This is just the nit that triggered all this. It it is only the wrapping, you could simply hack org-fill-paragraph, for example like this: (defun org-fill-paragraph (&optional justify) "Re-align a table, pass through to fill-paragraph if no table." (let ((table-p (org-at-table-p)) (table.el-p (org-at-table.el-p))) (cond ((equal (char-after (point-at-bol)) ?*) t) ; skip headlines ((org-at-item-p) t) ((org-in-item-p) (save-excursion (save-restriction (org-beginning-of-item) (beginning-of-line 2) (narrow-to-region (point) (point-max)) (fill-paragraph nil)))) (table.el-p t) ; skip table.el tables (table-p (org-table-align) t) ; align org-mode tables (t nil)))) ; call paragraph-fill Our you could play with the variables paragraph-start, paragraph-separate, and auto-fill-inhibit-regexp. But I guess you are really after definition lists. Muse uses term :: definition which is not a bad syntax, I guess. - Carsten