[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: any Emacs features to help keep code/comments under 80 columns width
From: |
ken |
Subject: |
Re: any Emacs features to help keep code/comments under 80 columns width? |
Date: |
Fri, 29 Nov 2002 20:40:18 -0500 (EST) |
Chris,
To get this when emacs loads, put the following in your .emacs:
(setq text-mode-hook 'turn-on-auto-fill)
As can be seen, that just sets it for text mode. Do another for, say,
html-helper-mode:
(setq html-helper-mode-hook 'turn-on-auto-fill)
Personally, I turnaround at 78:
(setq-default fill-column 78)
Since versions seem to be more than normally critical, mine's 20.7.1.
hth,
ken
--
AMD crashes? See http://cleveland.lug.net/~ken/amd-problem/.
seberino@spawar.navy.mil at 15:22 (UTC-0800) on Thu, 28 Nov 2002 said:
= I often write comments and code and look at modeline's Column# display
= to verify I did not go beyond the 80th column when I type.
=
= Are there any goodies in Emacs to help me accomplish this???
=
=
= Maybe....
=
= 1. Emacs flashes the screen when I reach column 80
=
= 2. Emacs automatically adds a hard return and moves me to next line
= when I reach column 80.
=
= 3. Emacs just doesn't let me type beyond column 80.
=
= Chris
=