I am learning to use emacs, and really like it!
I edit latex texts, and I programmed a macro to make "pdflatex" quickly; this are the lines in my .emacs:
(defun pdflatex ()
"Run <pdflatex> on the current buffer's file."
(let ((cb (current-buffer)))
(set-buffer (get-buffer-create "*TEMP*"))
(call-process "pdflatex" nil t nil (buffer-file-name cb) )
(global-set-key [(meta p)] 'pdflatex)
(in fact, I copied it from a tutorial and simply made some minor and necessary changes).
My problem now is this: I would like to do a macro that runs "acrobat reader", but on a file whose name is the same of the buffer-name, but with another extension (".pdf"). I hope I made myself clear...
Thank you! :-)