Default newline on Windows

Aidan Kehoe kehoea at parhasard.net
Thu Dec 7 03:12:20 EST 2006


 Ar an séiú lá de mí na Nollaig, scríobh Tony Freixas: 

 > >  > However, when I create a new file, it defaults to the Unix
 > >  > convention. I would like it to default to the Windows convention,
 > >  > but haven't found the magic incantation to do so. Can anyone help
 > >  > with this?
 > >
 > > (setq-default buffer-file-coding-system 'iso-8859-1-dos)
 > >
 > > in your ~/.xemacs/init.el is one way to do it. 
 >
 > I just got around to trying this. The magic incantation actually turned
 > out to be:
 > 
 > (setq-default buffer-file-coding-system 'raw-text-dos)
 > 
 > The available coding systems include iso-8859-1, but not iso-8859-1-dos
 > (at least, not on my machine). Still, thanks Adrian, you got me close
 > enough to resolve the problem.

It doesn’t matter, since what you did will be equivalent, but iso-8859-1-dos
should be available, certainly on Mule. It may be hidden in the list, but
I’d be surprised if 

M-: (find-coding-system 'iso-8859-1-dos) RET 

didn’t give you

#<coding_system iso-8859-1-dos>

-- 
Santa Maradona, priez pour moi!




More information about the XEmacs-Beta mailing list