emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Fill-paragraph and orgmode


From: Carsten Dominik
Subject: Re: [Orgmode] Fill-paragraph and orgmode
Date: Thu, 31 Jan 2008 10:16:07 +0100

Hi Hugo,

you need to look at the variables paragraph-start and paragraph- separate.
You can use org-mode-hook to change them.
I believe the following might do the trick


(add-hook 'org-mode-hook
  (lambda ()
(org-set-local 'paragraph-separate "\f\\|\\*+ \\|[ ]*$\\| [ \t]*[:|]\\|^[ \t]+\\[[0-9]\\{4\\}-")
    ;; The paragraph starter includes hand-formatted lists.
    (org-set-local 'paragraph-start
"\f\\|[ ]*$\\|\\*+ \\|\f\\|[ \t]*\\([-+*][ \t]+\\|[0-9]+[.)][ \t] +\\)\\|[ \t]*[:|]\\|^[ \t]+\\[[0-9]\\{4\\}-")))

Hope this helps.

- Carsten


On Jan 28, 2008, at 11:54 AM, Hugo Schmitt wrote:

Hi everyone. There is a little issue that I keep having with org-mode.
Say the cursor is on <> :

* TODO Title
Words words words words words words words words words words words words words words words<>
  [2008-01-25 sex]

After you press M-q you get this:

* TODO Title
Words words words words words words words words words words words words words
  words words [2008-01-25 sex]

... while what i really wanted was this:

* TODO Title
Words words words words words words words words words words words words words
  words words
  [2008-01-25 sex]

Sure, it only takes a <RET> to fix, but anyway, if anyone has a solution for this, please share with me.

Thanks,
Hugo


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]