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

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

Re: How to get rid of annoying ^M lineendings


From: Michael Heerdegen
Subject: Re: How to get rid of annoying ^M lineendings
Date: Fri, 18 Jul 2014 07:53:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

scott.althoff@gmail.com writes:

> Is there a way to execute this every time emacs starts?

Why do you want to do this?  Emacs handles different file encodings
automatically (the line end convention is part of the coding system).
Normally you don't need to do such things unless your files are garbled
wrt encoding.

If you always open files with the correct encoding - if Emacs guesses
the wrong encoding, you can force the right one:

   (info "(emacs) Specify Coding")

- then you don't ever need to perform any replacements in your files.


Michael.




reply via email to

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