unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Adam <a24061@void.yahoo.void.com>
Subject: How to use set-fill-column as a hook?
Date: Tue, 10 Dec 2002 14:57:06 GMT	[thread overview]
Message-ID: <6hnJ9.5028$ci6.42894520@news-text.cableinet.net> (raw)

I have the following in ~/.emacs:

(add-hook 'text-mode-hook 'turn-on-auto-fill)
(add-hook 'latex-mode-hook 'turn-on-auto-fill)

I now want to set the fill-column differently for LaTeX files.

This doesn't do anything (I verified with C-h v that the value of 
fill-column is 70, the default):
(add-hook 'latex-mode-hook '('set-fill-column 100))

This gives an error when starting emacs:
(add-hook 'latex-mode-hook ('set-fill-column 100))

What's the correct syntax?


Also, once I've done that, can I set it differently for mail-mode and 
text-mode?

Thanks,
Adam

             reply	other threads:[~2002-12-10 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 14:57 Adam [this message]
2002-12-10 14:59 ` How to use set-fill-column as a hook? David Kastrup
2002-12-10 15:27   ` Adam
  -- strict thread matches above, loose matches on Subject: below --
2002-12-10 15:42 Bingham, Jay
     [not found] <mailman.89.1039534939.19936.help-gnu-emacs@gnu.org>
2002-12-11 12:43 ` Adam
2002-12-11 14:52 Bingham, Jay
     [not found] <mailman.117.1039618386.19936.help-gnu-emacs@gnu.org>
2002-12-11 19:05 ` Adam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='6hnJ9.5028$ci6.42894520@news-text.cableinet.net' \
    --to=a24061@void.yahoo.void.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).