From: mike hardy <no_sp@m.for_me.org>
Subject: mode-aware fill-column?
Date: Mon, 16 Sep 2002 20:45:40 GMT [thread overview]
Message-ID: <jbd6rdvewu.fsf@analog.net> (raw)
Howdy -
Using Emacs for personal editing I like text columns to wrap around 84
chars. But (some) ppl prefer to see 72-ish for posting to Usenet. I'd
like to accomodate them if there is some automatic way of changing
fill-column's value between the two. Say somehow using ~/.gnus.el to
change it to 72 but all other times use 84 (and when exiting Gnus it
reverts to 84 automatically)? Or maybe only use 84 when a buffer causes
text-mode to start and at all other times use 72? Is this something I can
use ~/.gnus.el to change?
In poking around Info I see "set-fill-column" but I don't know anything
about using LISP to detect the mode, execute "*fill*", etc., when I visit
a buffer. It looks like I could just use "set-fill-column" when entering
text-mode I could leave the fill* default at 72 and change it to 84 for
text-mode (which Info intimates would be good only while in text-mode?).
But I don't know how to pass a value to a function (or invoke the
function) upon starting text-mode.
This is what I'm using right now if it matters (~/.emacs):
(setq-default major-mode 'text-mode)
;; turn on auto-fill:
(add-hook 'text-mode-hook 'auto-fill-mode)
(setq-default fill-column 74)
;(setq-default fill-column 82)
Thanks...
Mike
--
------------------------
mhardy_mail@NO_SPAM@yahoo.com
Help Wanted: Psychic. You know where to apply.
next reply other threads:[~2002-09-16 20:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-16 20:45 mike hardy [this message]
2002-09-16 23:47 ` mode-aware fill-column? Oliver Scholz
2002-09-17 4:48 ` mike hardy
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=jbd6rdvewu.fsf@analog.net \
--to=no_sp@m.for_me.org \
/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).