Article View: gnu.emacs.gnus
Article #906Re: gnus & auto-fill-mode
From: Tassilo Horn
Date: Wed, 13 Feb 2013 09:29
Date: Wed, 13 Feb 2013 09:29
61 lines
4313 bytes
4313 bytes
Gijs Hillenius <gijs@hillenius.net> writes:
>> So probably the problem is somewhere else. May we have a look at
>> "your own text mode".
>
> yah, of course.
>
> (define-derived-mode my-text-mode
> text-mode "Text"
> "Modified text-mode, includes longlines-mode and flyspell-mode"
> (visual-line-mode 1)
> (flyspell-mode 1)
> ;; loading Cecil's modeline
> (load "modeline.el")
> (dolist (hook '(text-mode-hook))
> (add-hook hook (lambda()
> (setq mode-line-types (vector "words" "chars"))))))
And I guess you have an entry ("\\.te?xt\\'" . my-text-mode) in
`auto-mode-alist', right?
Anyway, I don't see how that could enable `auto-fill-mode' globally.
The only way to enable auto-filling globally seems to be
(setq-default auto-fill-function 'do-auto-fill)
and I guess you're not doing that, right?
Hm, another idea: Is `auto-fill-mode' *really* enabled, or is it just
that there's a Fill in the mode-line? The latter could be a problem
with the modeline.el you're loading.
To check if `auto-fill-mode' is really enabled in a buffer, do:
,----[ C-h k C-h m ]
| C-h m runs the command describe-mode, which is an interactive compiled Lisp
| function in `help.el'.
|
| It is bound to C-c ?, C-h m, <f1> m, <help> m, <menu-bar> <help-menu>
| <describe> <describe-mode>.
|
| (describe-mode &optional BUFFER)
|
| Display documentation of current major mode and minor modes.
| A brief summary of the minor modes comes first, followed by the
| major mode description. This is followed by detailed
| descriptions of the minor modes, each on a separate page.
|
| For this to work correctly for a minor mode, the mode's indicator
| variable (listed in `minor-mode-alist') must also be a function
| whose documentation describes the minor mode.
|
| If called from Lisp with a non-nil BUFFER argument, display
| documentation for the major and minor modes of that buffer.
`----
At the top of the *Help* buffer, it'll enumerate all enabled minor
modes.
Bye,
Tassilo
Technical Details
Message-ID:
<mailman.19799.1360747819.855.info-gnus-english@gnu.org>Path:
arc1-ca.pugleaf.net!jm3ni8693pbb.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.mi.ras.ru!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mailReferences:
<87k3qdbzor.fsf@hillenius.net> <87ehgli90d.fsf@riseup.net> <mailman.19778.1360741995.855.info-gnus-english@gnu.org> <87liasfvvz.fsf@hillenius.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 99bd902dcd,a726a9958082ecbf
X-Google-Attributes: gid99bd902dcd,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.66.72.199 with SMTP id f7mr2641868pav.12.1361241949121;
Mon, 18 Feb 2013 18:45:49 -0800 (PST)
Path: arc1-ca.pugleaf.net!jm3ni8693pbb.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.mi.ras.ru!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From: Tassilo Horn <tsdh@gnu.org>
Newsgroups: gnu.emacs.gnus
Subject: Re: gnus & auto-fill-mode
Date: Wed, 13 Feb 2013 10:29:38 +0100
Lines: 63
Approved: info-gnus-english@gnu.org
Message-ID: <mailman.19799.1360747819.855.info-gnus-english@gnu.org>
References: <87k3qdbzor.fsf@hillenius.net> <87ehgli90d.fsf@riseup.net>
<mailman.19778.1360741995.855.info-gnus-english@gnu.org>
<87liasfvvz.fsf@hillenius.net>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1360747820 5428 208.118.235.17 (13 Feb 2013 09:30:20 GMT)
X-Complaints-To: action@cs.stanford.edu
To: info-gnus-english@gnu.org
Envelope-to: info-gnus-english@gnu.org
X-Injected-Via-Gmane: http://gmane.org/
X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)
Cancel-Lock: sha1:b1gv6P01kgQCcSqckPC4jT7+oiU=
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 80.91.229.3
X-BeenThere: info-gnus-english@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Announcements and discussions for GNUS,
the GNU Emacs Usenet newsreader \(in English\)"
<info-gnus-english.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/info-gnus-english>,
<mailto:info-gnus-english-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/info-gnus-english>
List-Post: <mailto:info-gnus-english@gnu.org>
List-Help: <mailto:info-gnus-english-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/info-gnus-english>,
<mailto:info-gnus-english-request@gnu.org?subject=subscribe>
Bytes: 3927
Content-Type: text/plain