* setting a variable for a mode
@ 2002-11-01 16:36 Matthew Hinton
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Hinton @ 2002-11-01 16:36 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 463 bytes --]
I would like to set the fill column when text mode loads. In my
custom-set-variables I already have
'(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
I was wondering what I need to add to this to get it to set fill-column to 78.
I have playing with it and I can't quite seem to get it worked out.
--
Thats why I decided to sabotage my highly scientific mind with cartoons and suger.
-- Sheen from Jimmy Neutron
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: setting a variable for a mode
[not found] ` <m3u1j1t8et.fsf@swagbelly.net>
@ 2002-11-02 0:24 ` Henrik Enberg
2002-11-05 16:51 ` Matthew Hinton
1 sibling, 0 replies; 3+ messages in thread
From: Henrik Enberg @ 2002-11-02 0:24 UTC (permalink / raw)
Cyprian Laskowski <swagbelly@yahoo.com> writes:
> (make-variable-buffer-local 'fill-column)
Note that `fill-column' is buffer-local by default.
--
Booting... /vmemacs.el
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: setting a variable for a mode
[not found] ` <m3u1j1t8et.fsf@swagbelly.net>
2002-11-02 0:24 ` setting a variable for a mode Henrik Enberg
@ 2002-11-05 16:51 ` Matthew Hinton
1 sibling, 0 replies; 3+ messages in thread
From: Matthew Hinton @ 2002-11-05 16:51 UTC (permalink / raw)
On Fri, 01 Nov 2002 19:05:44 GMT, Cyprian Laskowski <swagbelly@yahoo.com> wrote:
> Try:
>
> (make-variable-buffer-local 'fill-column)
> (add-hook 'text-mode-hook (lambda () (setq fill-column 78)))
>
Thank you very much. I wouldn't have figured that out.
--
Thats why I decided to sabotage my highly scientific mind with cartoons
and suger.
-- Sheen from Jimmy Neutron
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-05 16:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1036168637.15272.help-gnu-emacs@gnu.org>
[not found] ` <m3u1j1t8et.fsf@swagbelly.net>
2002-11-02 0:24 ` setting a variable for a mode Henrik Enberg
2002-11-05 16:51 ` Matthew Hinton
2002-11-01 16:36 Matthew Hinton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).