Is there already or are there any plans to add a feature similar to 'require-final-newline' in emacs?
Jordan
On Aug 22, 2005, at 10:02 PM, Jordan Breeding wrote:
Is there already or are there any plans to add a feature similar to 'require-final-newline' in emacs?
I would love to have this, too!
... along with open/save hooks. ;-)
-- __ ____ / / / __/ Brian Lalor "If you still have gas, you're not lost." / _ /__ \ blalor@bravo5.org -- Jacques Strappe /_.__/____/ http://bravo5.org/
nano does not out of the box, it always displays one more newline at the end of the file, however it is not saved with one (else I would have tons of PHP scripts throwing up headers errors).
On 8/27/05, Sune Foldager cryo@cyanite.org wrote:
On 28/08/2005, at 0.35, Allan Odgaard wrote:
Sorry, missed this one -- what does this feature do? ensure that the file is saved with a final newline?
Yes. Many *nix editors seem to do so automatically. Including nano.
-- Sune.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 28/08/2005, at 1.48, Robert Deaton wrote:
nano does not out of the box, it always displays one more newline at the end of the file, however it is not saved with one (else I would have tons of PHP scripts throwing up headers errors).
Nano does it for me, and actually the PHP end-tag includes a newline, if present right after it, so you won't get any errors from it.
-- Sune.