help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: howto suffix based fill-column?


From: Joakim Hove
Subject: Re: howto suffix based fill-column?
Date: Thu, 07 Aug 2003 11:57:49 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux)

Eike Kroemer <address@hidden> writes:

> Hi there,
>
> can someone kind provide me with some code for my .emacs that will do
> the following:

Try this:

(defun set-fill-column ()
   (if (string-equal (file-name-extension (buffer-file-name)) "eml")
      (setq fill­column 68)
    (setq fill-column 79)))

(add-hook 'find-file-hooks 'set-fill-column)


Joakim


-- 
  /--------------------------------------------------------------------\
 / Joakim Hove  / address@hidden  /  (55 5) 84076       |                 \
 | Unifob AS, Avdeling for Beregningsvitenskap (BCCS) | Stabburveien 18 |
 | CMU                                                | 5231 Paradis    |
 \ Thormøhlensgt.55, 5020 Bergen.                     | 55 91 28 18     /
  \--------------------------------------------------------------------/


reply via email to

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