{"id":1680,"date":"2011-06-27T22:01:00","date_gmt":"2011-06-27T22:01:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2011\/06\/27\/emacs-output-coding-line-endings\/"},"modified":"2011-06-27T22:01:00","modified_gmt":"2011-06-27T22:01:00","slug":"emacs-output-coding-line-endings","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2011\/06\/27\/emacs-output-coding-line-endings\/","title":{"rendered":"emacs: &#8220;output coding&#8221; &#8211; line endings"},"content":{"rendered":"<p>\t\t\t\t<a href=\"http:\/\/www.gnu.org\/software\/emacs\/manual\/html_node\/emacs\/Output-Coding.html\">Output Coding &#8211; GNU Emacs Manual<\/a><\/p>\n<p>I had an accounting file with DOS line endings, and I needed it with just 0xa (ASCII line feed).<\/p>\n<p>I found this function for converting the line endings in GNU Emacs:<\/p>\n<div>\n<\/div>\n<div>\n<span><br \/><\/span><\/p>\n<blockquote><p>\n<span>set-buffer-file-coding-system<\/span>, used like this:<\/p><\/blockquote>\n<blockquote><p>\n<span><br \/><\/span><span>C-x RET f unix RET<\/span><\/p><\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Output Coding &#8211; GNU Emacs Manual I had an accounting file with DOS line endings, and I needed it with just 0xa (ASCII line feed). I found this function for converting the line endings in GNU Emacs: set-buffer-file-coding-system, used like this: C-x RET f unix RET<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-1680","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-r6","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/1680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=1680"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/1680\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=1680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=1680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=1680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}