[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: whitespace issues
From: |
tomas |
Subject: |
Re: whitespace issues |
Date: |
Tue, 30 Jun 2015 16:54:28 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Jun 30, 2015 at 07:17:39AM -0700, Rusi wrote:
> I have two somewhat related questions, both around whitespace:
>
> 1. Is it possible to have some sort of save-hook so that all leading
> (indentation) whitespace is cleaned up to space alone and tabs are removed?
I'll leave that to more knowledgeable.
> 2. How to make a dirty crlf file in emacs?
> By dirty I mean, some lines ending LF (ie Unix) and some ending CRLF (ie DOS)
> [This is to test that such dirty-files are not add-able into git]
Since CR == CTLR-M, create a file with a buffer coding system
whatever-nix (e.g. utf8-unix). This is the default on a sensible
operating system anyway :-)
At the end of a line, type CTRL-Q CTRL-M -- voilà, this line has crlf
at its end. Check either with hexl-mode, or outside Emacs with hexdump -C.
regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlWSraQACgkQBcgs9XrR2kZ89ACfSaNmH/5SeCDcV5r+yAnVZbig
MtMAn2ogT/O7Z6vHpFBctGwobLonf+HG
=MoaO
-----END PGP SIGNATURE-----
- whitespace issues, Rusi, 2015/06/30
- Re: whitespace issues,
tomas <=
- Message not available
- Re: whitespace issues, Jorge A. Alfaro-Murillo, 2015/06/30
- Re: whitespace issues, Óscar Fuentes, 2015/06/30
- Re: whitespace issues, Ian Zimmerman, 2015/06/30
- Message not available
- Re: whitespace issues, Dan Espen, 2015/06/30
- Re: whitespace issues, Emanuel Berg, 2015/06/30
- Message not available
- Message not available