emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Smarter fill-paragraph behaviour in #+XXX: comments


From: XeCycle
Subject: Re: [O] Smarter fill-paragraph behaviour in #+XXX: comments
Date: Fri, 20 Jul 2012 15:11:13 +0800
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Paul Sexton <address@hidden> writes:

> I became annoyed at how, when pressing M-Q (fill-paragraph) while in a 
> block like this:
>
> #+CAPTION: This is a really long caption that I need
> #+CAPTION: to describe my table in excruciating and unnecessary detail
>
> Org takes no account of the #+ directives and simply smooshes all the 
> lines together like this:
>
>
> #+CAPTION: This is a really long caption that I need +CAPTION: to describe my
> #table in excruciating and unnecessary detail
>
>
> So I wrote the following function. I have it bound to M-q in
> org-mode.

Instead of doing these, you can try setting adaptive-fill-regexp
and adaptive-fill-first-line-regexp.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591

Attachment: pgprjp3YNPZxn.pgp
Description: PGP signature


reply via email to

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