On Tue, Oct 26, 2010 at 11:49 PM, paxxus<paxxus@hotmail.com> wrote:
Thanks for the suggestions.
I used fundamental-mode, always. It turns out that you can't add hooks to
that mode, so I changed my default mode to text-mode, and then added this
hook:
(add-hook 'text-mode-hook (lambda () (interactive) (highlight-80+-mode 1)))
The define-globalized-minor-mode also looks interesting, I'll try that out.
I have now worked a couple of days in text-mode instead of fundamental-mode,
and I can't detect any difference at all (which is good for what I want). Is
there a difference other than the hook stuff?
It looks like the most noticeable difference between text-mode and
fundamental-mode is that by default text-mode puts a newline at the
end of the file when you save if there isn't one already.