[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make emacs *not* add a newline at the end of the file?
From: |
Juha Nieminen |
Subject: |
Re: How to make emacs *not* add a newline at the end of the file? |
Date: |
Sat, 03 Jan 2009 11:41:29 GMT |
User-agent: |
Thunderbird 2.0.0.18 (X11/20081112) |
Kevin Rodgers wrote:
> Juha Nieminen wrote:
>> Charles Sebold wrote:
>>> Also see the value of the variable mode-require-final-newline.
>>
>> That did what I wanted. Thanks.
>
> Just curious: What modes set require-final-newline, and how does that
> hinder you?
From what I tested, at least editing .txt, .c and .cc files did that.
It hinders me in the few cases where I really *don't* want that
newline at the end. I have always liked emacs exactly because it doesn't
add (or remove) *anything* I don't explicitly instruct it to, no matter
which file I edit. This seems to be more an exception than a rule with
text editors (especially in Windows). I don't need the text editor to
"think for me" in this case.