Sunday, April 8, 2007

Force emacs to open files in unix mode

I believe that emacs by default will use the line endings for current system when opening and saving text files.  This may cause a problem when you want to force the file to be saved with different line endings. I found this series of commands to force the file to be opened in unix mode:

C-x RET c unix RET C-x C-f

You can replace unix with dos, if you want to use those types of line endings.

No comments:

Post a Comment

Revolutionizing Air Quality Monitoring: How I Upgraded Our System with Mila Integration for Smart Home Automation

In this blog post , I explained how I set up an air quality monitoring system for our neighborhood. With this setup, we can keep an eye on t...