[Tex/LaTex] Auctex block indent

auctexeditorsemacsindentation

Is there a way to block indent whole paragraphs in emacs + auctex? I'm thinking in that functionality in such editors as WinEdt.

I've search in different fora, and in the available documentation, but what I've found doesn't seem to work in LaTeX mode.

Best Answer

Here's my assessment based on the other comments etc. Based your screen shots you have the entire paragraph as one long line and you are using visual-line-mode. That's perfectly fine except that visual-line-mode doesn't know how far to indent the wrapped lines. To do that you have to use something like adaptive-wrap-prefix-mode which is available from the GNU ELPA. Adding that to the appropriate hook should work.

The following isn't exactly how I invoke it, but I think it should work okay.

(add-hook 'text-mode-hook 'adaptive-wrap-prefix-mode)
Related Question