[PLUG] Emacs: Setting Line Length for .txt Files

Rich Shepard rshepard at appl-ecosys.com
Thu Mar 12 16:10:24 UTC 2015


On Wed, 11 Mar 2015, Dale Snell wrote:

> I have the following in my ~/.emacs.d/init.el file:
> (add-hook 'text-mode-hook (lambda () (setq-default fill-column 66)))

   This is interesting: it does not work here. (I changed the fill-column to
80).

   Invoked emacs and loaded a text file from yesterday into the buffer. As
soon as I added text and reformatted the paragraph (with M-q), all lines
shortened. With C-x f (set fill column) the current length was 37. Set that
back to 80.

   Sigh, I'll live with changing the fill-column for each file loaded.

Rich



More information about the PLUG mailing list