[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: howto suffix based fill-column?

From: Stefan Monnier
Subject: Re: howto suffix based fill-column?
Date: 10 Aug 2003 14:07:05 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Eike" == Eike Kroemer <address@hidden> 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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]