From: "Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: howto suffix based fill-column?
Date: 10 Aug 2003 14:07:05 -0400 [thread overview]
Message-ID: <5lhe4pqtdi.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: bgsp8a$s0tvc$1@ID-16184.news.uni-berlin.de
>>>>> "Eike" == Eike Kroemer <kroemer@atlas.de> writes:
> can someone kind provide me with some code for my .emacs that will do
> the following:
> if (suffix-of-file == eml)
> enter text mode
> (setq fill-column 68)
> else
> (setq fill-column 79)
> end
(define-derived-mode eml-mode text-mode "EML"
"Mode for EML files."
;; Add more EML-specific settings here.
(set (make-local-variable 'fill-column) 68))
;; Make .eml files use eml-mode.
(add-to-list 'auto-mode-alist '("\\.eml\\'" . eml-mode))
To set the rest to 79 column, try something like
(setq-default fill-column 79)
Stefan
prev parent reply other threads:[~2003-08-10 18:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-07 5:48 howto suffix based fill-column? Eike Kroemer
2003-08-07 9:57 ` Joakim Hove
2003-08-07 10:10 ` Eike Kroemer
2003-08-07 12:00 ` Reiner Steib
2003-08-07 18:12 ` Kevin Rodgers
2003-08-10 18:07 ` Stefan Monnier [this message]
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=5lhe4pqtdi.fsf@rum.cs.yale.edu \
--to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
/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).