[Nottingham] EMacs

Jey Davis techr at whatnotts.co.uk
Tue Jan 25 19:09:50 GMT 2005


Joshua Lock wrote:
[...]
> Can anyone tell me how to change this setting in Emacs so that on each 
> platform the default line-ending/encoding is the Unix one?

Add something like this to your .emacs file.

(setq file-name-buffer-file-type-alist '(("\\.txt$" . nil) (".*" . t)))

The first list is a regular expression that says to emacs to allow 
translation of the file to windows line-endings.
The second list says everything else should be opened as binary.

Modify this as required.

Have a good time,
Jey Davis
-- 
         _____
        /   /_  __,___,  ._
       /___/|_|_> | | |\/(/_
      /    /_ _  /. . /_, _ . . __
         ___/(_)/_|_|/_ |(_)|\|_)
      Intranet  Extranet  Internet
      Email: techr at whatnotts.co.uk





More information about the Nottingham mailing list