[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I enable minor mode, always?
From: |
Oleksandr Gavenko |
Subject: |
Re: How can I enable minor mode, always? |
Date: |
Wed, 27 Oct 2010 09:43:55 +0300 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 |
On 27.10.2010 2:49, paxxus 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?
Yes. Please refer to Emacs info: 29.7 Text Mode.
In Text mode, only blank lines and page delimiters separate
paragraphs. As a result, paragraphs can be indented, and adaptive
filling determines what indentation to use when filling a paragraph.
*Note Adaptive Fill::.
Text mode defines <TAB> to run `indent-relative' (*note
Indentation::), so that you can conveniently indent a line like the
previous line.
Text mode turns off the features concerned with comments except when
you explicitly invoke them.
.... .... ....