I've been experimenting with AucTeX, and I can't tell if this is a question that best belongs in the emacs forum, or here. If it belongs there, I will gladly move it.
I've been using the
Latex-fill-environment option via
C-c C-q C-e to automatically format my documents. However, I end up with a great deal of space to the right of my text. I have been playing with the frame size via
(add-to-list 'default-frame-alist '(width . 104)), but that does not seem to change the behavior of the fill function.
What I would like to do is have AucTeX automatically wrap text at the width of my window using one of the different fill commands mentioned earlier. Right now it is wrapping at 72 characters (assuming that I can count properly right now) regardless of the window width.
Here are relevant parts of my .emacs file:
(setq default word-wrap t) (load-theme 'manoj-dark) (add-to-list 'default-frame-alist '(width . 104)) ;; AucTeX stuff (setq LaTeX-item-indent 0) (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
If I am interpreting things correctly, the first paragraph is emacs theme/properties related things, second paragraph is AucTeX related things.
EDIT: Not sure that it matters, but the first thing that I usually do when opening a tex file in emacs is to snap it to the left half of my screen. Then I can compile the document and view on the right half of my screen.