* Save without carriage returns @ 2006-01-19 2:38 iamnoah 2006-01-19 3:39 ` Pascal Bourguignon 0 siblings, 1 reply; 6+ messages in thread From: iamnoah @ 2006-01-19 2:38 UTC (permalink / raw) How can I make emacs save files with just \n instead of \r\n? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Save without carriage returns 2006-01-19 2:38 Save without carriage returns iamnoah @ 2006-01-19 3:39 ` Pascal Bourguignon 2006-01-19 11:05 ` Rupert Swarbrick 0 siblings, 1 reply; 6+ messages in thread From: Pascal Bourguignon @ 2006-01-19 3:39 UTC (permalink / raw) iamnoah@gmail.com writes: > How can I make emacs save files with just \n instead of \r\n? Once: C-x RET c iso-8859-1-unix RET C-x C-s (or any other -unix encoding) For new buffer, I'd use set-default-coding-systems. (set-default-coding-systems 'iso-8859-1-unix) Otherwise, emacs keep the encoding including the newlines it found in an old file. -- __Pascal Bourguignon__ http://www.informatimago.com/ -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d? s++:++ a+ C+++ UL++++ P--- L+++ E+++ W++ N+++ o-- K- w--- O- M++ V PS PE++ Y++ PGP t+ 5+ X++ R !tv b+++ DI++++ D++ G e+++ h+ r-- z? ------END GEEK CODE BLOCK------ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Save without carriage returns 2006-01-19 3:39 ` Pascal Bourguignon @ 2006-01-19 11:05 ` Rupert Swarbrick 2006-01-19 15:08 ` iamnoah 0 siblings, 1 reply; 6+ messages in thread From: Rupert Swarbrick @ 2006-01-19 11:05 UTC (permalink / raw) [-- Attachment #1.1: Type: text/plain, Size: 385 bytes --] Pascal Bourguignon wrote: > iamnoah@gmail.com writes: > > >>How can I make emacs save files with just \n instead of \r\n? > > > Once: C-x RET c iso-8859-1-unix RET C-x C-s > (or any other -unix encoding) > That's correct, but if you find yourself doing it reasonably frequently, there's a coding system called just `unix', which takes rather less typing. Rupert [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 374 bytes --] [-- Attachment #2: Type: text/plain, Size: 152 bytes --] _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Save without carriage returns 2006-01-19 11:05 ` Rupert Swarbrick @ 2006-01-19 15:08 ` iamnoah 2006-01-19 19:18 ` Andreas Röhler 2006-01-20 9:13 ` Peter Dyballa 0 siblings, 2 replies; 6+ messages in thread From: iamnoah @ 2006-01-19 15:08 UTC (permalink / raw) Is there a .emacs line that will make it the default? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Save without carriage returns 2006-01-19 15:08 ` iamnoah @ 2006-01-19 19:18 ` Andreas Röhler 2006-01-20 9:13 ` Peter Dyballa 1 sibling, 0 replies; 6+ messages in thread From: Andreas Röhler @ 2006-01-19 19:18 UTC (permalink / raw) iamnoah@gmail.com wrote: > Is there a .emacs line that will make it the default? In my .emacs I found the following: (require 'ucs-tables) (unify-8859-on-encoding-mode 1) (unify-8859-on-decoding-mode 1) Seems not to harm... I'm not sure if the first line is needed in your context, it installs unicode as I understand it. Andreas Roehler ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Save without carriage returns 2006-01-19 15:08 ` iamnoah 2006-01-19 19:18 ` Andreas Röhler @ 2006-01-20 9:13 ` Peter Dyballa 1 sibling, 0 replies; 6+ messages in thread From: Peter Dyballa @ 2006-01-20 9:13 UTC (permalink / raw) Cc: help-gnu-emacs Am 19.01.2006 um 16:08 schrieb iamnoah@gmail.com: > Is there a .emacs line that will make it the default? Some lines in the manner of: (setq file-name-coding-system 'utf-8) (setq default-buffer-file-coding-system 'mac-roman-unix) (set-default-coding-systems 'mac-roman-unix) (prefer-coding-system 'mac-roman-unix) The '-unix' strips away the carriage return. -- Greetings Pete Never be led astray onto the path of virtue. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-01-20 9:13 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-01-19 2:38 Save without carriage returns iamnoah 2006-01-19 3:39 ` Pascal Bourguignon 2006-01-19 11:05 ` Rupert Swarbrick 2006-01-19 15:08 ` iamnoah 2006-01-19 19:18 ` Andreas Röhler 2006-01-20 9:13 ` Peter Dyballa
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).