Index: src/nano.h =================================================================== --- src/nano.h (revision 5168) +++ src/nano.h (working copy) @@ -536,7 +536,8 @@ SOFTWRAP, POS_HISTORY, LOCKING, - NOREAD_MODE + NOREAD_MODE, + MAKE_IT_UNIX }; /* Flags for the menus in which a given function should be present. */ Index: src/files.c =================================================================== --- src/files.c (revision 5168) +++ src/files.c (working copy) @@ -908,6 +908,9 @@ statusbar(P_("Read %lu line ( Warning: No write permission)", "Read %lu lines (Warning: No write permission)", (unsigned long)num_lines), (unsigned long)num_lines); + + if (ISSET(MAKE_IT_UNIX)) + openfile->fmt = NIX_FILE; } /* Open the file (and decide if it exists). If newfie is TRUE, display Index: src/rcfile.c =================================================================== --- src/rcfile.c (revision 5168) +++ src/rcfile.c (working copy) @@ -77,6 +77,7 @@ {"suspend", SUSPEND}, {"tabsize", 0}, {"tempfile", TEMP_FILE}, + {"unix", MAKE_IT_UNIX}, {"view", VIEW_MODE}, #ifndef NANO_TINY {"autoindent", AUTOINDENT}, Index: src/nano.c =================================================================== --- src/nano.c (revision 5168) +++ src/nano.c (working copy) @@ -2157,6 +2157,7 @@ {"speller", 1, NULL, 's'}, #endif {"tempfile", 0, NULL, 't'}, + {"unix", 0, NULL, 'u'}, {"view", 0, NULL, 'v'}, #ifndef DISABLE_WRAPPING {"nowrap", 0, NULL, 'w'}, @@ -2385,6 +2386,9 @@ case 't': SET(TEMP_FILE); break; + case 'u': + SET(MAKE_IT_UNIX); + break; case 'v': SET(VIEW_MODE); break;