So, it's enough to add the following to the .emacs file:
;; For Texi (setq fill-column 79) (add-hook 'text-mode-hook 'turn-on-auto-fill) (add-hook 'texinfo-mode-hook 'turn-on-auto-fill)
Best, Houtan
On 14 Sep 2011, at 11:30 AM, Sébastien Villemot wrote:
Houtan Bastani houtanb@gmail.com writes:
Was there an automatic way that you created endlines in dynare.texi? ie, Instead of having the lines be continuous, you seemed to break them at some margin. Does it matter to you if I don't do that?
I would prefer you to do that, if possible.
Using Emacs, it is very easy. The feature is called "filling". Here is the way to do it:
- first, configure the variable "fill-column" to 79
- second, when you are editing the .texi file, run "M-x auto-fill-mode"; now Emacs will automatically break lines of more than 79 columns (activating auto-filling can be automatized using hooks, for example by adding "turn-on-auto-fill" to "text-mode-hook")
- later, if you modify a paragraph which has already been filled, Emacs will not automatically fill it again; type "M-q" to do ask it to fill again.
That's it.
Best,