Paul Sexton <psexton...@gmail.com> 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: pgpUDU1bgY6qX.pgp
Description: PGP signature

Reply via email to