Am 26.09.2013 17:38, schrieb AW:
Hello!
To get a fast refreshing PDF of my LaTeX file, I use latexmk, which
renders a PDF every time the LaTeX file changed on the hard disk.
I'd like to have a mechanism to save the LaTeX file every x seconds.
So you want to save a single buffer, not all, as auto-save-buffers does?
In this case here a little step forward
(run-with-idle-timer 1 nil (lambda () (set-buffer "MY-TEX")(write-file
(expand-file-name "~/my.tex"))(message (format-time-string "%Y-%m-%d %a
%H:%M" (current-time)))))
It runs just once, as timers not to switch off might turn nasty.
Gives some messages when saving.
Edit the my-tex parts.
Andreas