Reputation: 912
How can I prevent emacs23 from inserting a newline after
C-u M-! date
is executed? Setting
(setq-default mode-require-final-newline nil)
has somehow no effect.
Upvotes: 0
Views: 90
Reputation: 401
As pointed out in the comment, the newline comes from the 'date' command itself. You need to find a way to make the command omit the final newline, one way to do it would be the following:
C-u M-! echo -n "`date`"
in which we use that 'echo' allows you to control the final newline. There are of course other ways to achieve the same.
Upvotes: 3