Re: configuring auc-tex

alctraz <[email protected]> Sun, 13 Mar 2005 21:30:56 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Hello,

Thank you for your help, C-c C-c 'y' RET C-c C-c RET is indeed beter
but still long.

I think I found a partial solution. I added the following to my ~/.emacs :

** BEGIN LISP
(defun Tex-contextual-command ()
  (interactive) 
  (save-buffer)
  (TeX-command-master)
;; How can I make the function press RET here ?
)

(add-hook 'LaTeX-mode-hook
  (lambda ()
    (local-set-key "\C-z" 'Tex-contextual-command)))
** END LISP

It seems to work fine, i just have to type C-z RET C-z RET.

How can I make my function 'press' RET for me too (see the comment) ?
So that could just type C-z C-z.

thanks


On Sun, 13 Mar 2005 17:05:03 +0100, David Kastrup <[email protected]> wrote:
> alctraz <[email protected]> writes:
> 
> > hello,
> >
> > I started using emacs & auc-tex one week ago, they are really amazing tools.
> >
> > I successfully configured some details of the auc-tex default
> > behaviour. I use the 'PDF Mode', and to check the actual result of my
> > latex code, I do the following:
> > 1) C-s C-s to save the buffer
> 
> C-x C-s, but not necessary.
> 
> > 2) I go with the mouse to the 'Command' menu to issue the 'LaTeX'
> > command (no shortcut)
> 
> Of course there is.  C-c C-c RET
> 
> > 3) C-c C-v to open the created PDF in Xpdf
> >
> > Well, it is quite boring to do this on a regular basis, but I can't
> > figure out how to create a new shortcut that could do these 3 steps.
> >
> > How can i do that?
> 
> Not so feasible right now.
> 
> But doing C-c C-c RET all the time will offer nice defaults.  I have
> to agree that this is not too obvious from the organization of the
> Command menu.  Proposals how to make this more obvious would be
> welcome.
> 
> --
> David Kastrup, Kriemhildstr. 15, 44793 Bochum
>