emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Eddward DeVilla <eddward@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: definition lists in org-mode
Date: Fri, 6 Jul 2007 12:44:40 +0200	[thread overview]
Message-ID: <fdfeb191167c3fdd78bd34c2aaf513f1@science.uva.nl> (raw)
In-Reply-To: <b71b18520707051501u5c77bf48pdf9f790a8c9ec52a@mail.gmail.com>


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

  parent reply	other threads:[~2007-07-06 10:44 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 22:01 definition lists in org-mode Eddward DeVilla
2007-07-06  9:56 ` Rick Moynihan
2007-07-06 10:34   ` Carsten Dominik
2007-07-06 10:45     ` Rick Moynihan
2007-07-06 12:43       ` Carsten Dominik
2007-07-06 15:52       ` Eddward DeVilla
2007-07-06 16:28         ` Rick Moynihan
2007-07-06 17:22           ` Carsten Dominik
2007-07-11 11:52             ` Suggestion: Jump points Rick Moynihan
2007-07-11 14:51               ` Eddward DeVilla
2007-07-11 15:20                 ` Rick Moynihan
2007-07-11 15:45                   ` Eddward DeVilla
2007-07-12 12:24                 ` Carsten Dominik
2007-07-11 15:28               ` Scott Jaderholm
2007-07-11 16:29                 ` Rick Moynihan
2007-07-11 18:23                 ` Daniel J. Sinder
2007-09-03 16:21               ` Carsten Dominik
2007-07-06 15:33     ` definition lists in org-mode Eddward DeVilla
2007-07-06 15:25   ` Eddward DeVilla
2007-07-06 10:44 ` Carsten Dominik [this message]
2007-07-06 15:43   ` Eddward DeVilla
2007-07-06 17:25     ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fdfeb191167c3fdd78bd34c2aaf513f1@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=eddward@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).