9/20 Is there a way to tell Emacs not to append an LF at the end of a C file
if the last line doesn't end with an LF? Thanks.
\- i dont undersand exactly what you mean [append when?] but emacs
can certainly do anything in this area with the approprite hook
(which should already exist for what youa re trying to do) calling
an appropriate function (which you may have to write). if what
want to do is reasonable, it is probably already solved. who are
you?
\_ Say I have a 7-byte file foo.c like this:
'F' 'O' 'O' <LF> 'B' 'A' 'R'
i.e. the second line doesn't end with <LF>.
\_ Found it: (setq require-final-newline nil). Thanks. -- OP |