comp.emacs
[Top] [All Lists]

Re: Ignore ^M in mixed (LF and CR+LF) line ended textfiles?

Subject: Re: Ignore ^M in mixed (LF and CR+LF) line ended textfiles?
From: Johan BockgÃrd
Date: Fri, 01 Jun 2007 11:03:39 +0200
Newsgroups: comp.emacs

Enselic <enselic@xxxxxxxxx> writes:

> Is there a way to make Emacs not show the ^M characters on DOS
> terminaated lines? Note that I don't want to modify the file, just
> not show the ^M characters.

(setq buffer-display-table (make-display-table))
(aset buffer-display-table ?\^M [])

-- 
Johan BockgÃrd

<Prev in Thread] Current Thread [Next in Thread>