Word wrapping in Emacs

  • First you've got to edit your .emacs file. Insert the line
        (setq-default fill-column 80)
    at the bottom. Here 80 is the maximal width of a line. You could use something else as well (70 is default, but I think that's pretty narrow).
  • Then restart emacs and resume typing your document.
  • When you're finished with a paragraph type M q (here M is the Meta-key, probably ESC or Alt Gr).

For more info see the GNU Emacs Manual

-- MiikkaSilfverberg - 25 Sep 2008

Topic revision: r1 - 2008-09-25 - MiikkaSilfverberg
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback