How can a paragraph paragraph be combined with a supercyte?

I use Emacs 23 and VM 8.1 to write and read email. I use Supercite 3.1 to get fantastic quotes in my answers like

Foo> bla bla bla ... When are you
Foo> resuming the work on our paper?

I would like to get the same functions as fill-paragraph, but in quote. I see that he is working on comments in LaTeX mode (with the same function fill number) q, so I assume that I just need to set up the correct regular expression for the paragraph-paragraph to complete the task, but which one and through which hook?


Example

I would like after editing "bla bla bla ..." to get the next

Foo> When are you
Foo> resuming the work on our paper?

and pressing Mq to get a correctly filled quote, such as

Foo> When are you resuming the work on 
Foo> our paper?

In LaTeX mode, the equivalent would have to go from

% When are you
% resuming the work on our paper?

to

% When are you resuming the work on our paper?

Late addition

Supercite filladapt gin-mode. (Http://www.delorie.com/gnu/docs/emacs/sc_4.html)

, "filladapt.el , Emacs ". http://www.emacswiki.org/emacs/FillAdapt .

gin-mode.el(http://www.gaertner.de/~neitzel/sw.html) cvs- .

+3
2

. set-fill-prefix ( C-x .). , fill-prefix ( "Foo > " ) C-x .; fill-paragraph (M-q) .

Edit (2011-02-27):

- (.. emacs "emacs -Q" ). C-x . fill-prefix? C-h v fill-prefix "Foo > ".

+1
0

Source: https://habr.com/ru/post/1794863/


All Articles