From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: The last character of a file
Date: Fri, 07 Nov 2003 17:44:14 GMT [thread overview]
Message-ID: <jwv65hwf55a.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca> (raw)
In-Reply-To: boelgt$45o$1@lust.ihug.co.nz
> Emacs is adding a newline to the end of my file. I'd like it not to :o)
By default Emacs normally does not add a newline.
It is controlled by the variable require-final-newline.
If that variable is t set it to nil or `ask'.
And also try to find out why it is set to t. It might be due
to the major mode you're using to edit the file, or to some change
in your .emacs or in the system global site-start.el or default.el.
(try passing -q and/or --no-site-file as args to Emacs when starting
to prevent loading those config files).
Stefan
next prev parent reply other threads:[~2003-11-07 17:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-06 23:34 The last character of a file Matthew Walker
2003-11-06 23:41 ` Dan Anderson
2003-11-07 17:44 ` Stefan Monnier [this message]
2003-11-08 0:48 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv65hwf55a.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).