Date: Thu, 14 Sep 2006 08:20:41 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Alex Zbyslaw <xfb52@dial.pipex.com> Cc: Andy Greenwood <greenwood.andy@gmail.com>, freebsd-questions@freebsd.org Subject: Re: CLI text editor recommendation Message-ID: <20060914052041.GB76681@gothmog.pc> In-Reply-To: <45083690.80904@dial.pipex.com> References: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> <45083690.80904@dial.pipex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-09-13 17:49, Alex Zbyslaw <xfb52@dial.pipex.com> wrote: >Andy Greenwood wrote: >> I need a CLI text editor I can use over ssh, which does NOT append >> newlines to the end of files as I save them. I am using this to edit >> PHP files, and my PHP doesn't like newlines outside the last ?>. ee >> and vi both do so, I tried nano which also does the same. I haven't >> installed emacs to try that yet, since the man page says that it also >> does the same thing. Does anyone have any ideas? > > Emacs most certainly can save files without newlines. I don't see any > option in my .emacs to force this behaviour so assume it works out of > the box, nor can I find any reference in the man page which says it > does add newlines. FWIW, try looking at the documentation of `require-final-newline': C-h v require-final-newline RET
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060914052041.GB76681>