Hi everyone,

I'd like to bind the call to the "LaTeX", "Biber", and "View" commands, as 
defined in TeX-command-list (and possibly others) each to a single key.

Up to now my approach was to call a macro, for example

(define-key TeX-mode-map [f8] [?\C-c ?\C-c ?L ?a ?T ?e ?X return])

to bind the whole key sequence "C-c C-c LaTeX [ret]" to f8.

For some reason this is now causing Emacs to freeze on Ubuntu/Gnome. I think 
it's a Gnome problem, but I wanted to try to bypass it for now, by assigning to 
f8 the proper command rather than a key macro.

I tried defining a function based on TeX-command-sequence and keybinding that:

(defun launch-latex ()
  (interactive)
  (TeX-command-sequence 'LaTeX t)
  )
(define-key TeX-mode-map [f8] 'launch-latex)

But it does more than I asked: it compiles, possibly multiple times, and also 
launches the viewer. Surely this is because I'm misusing TeX-command-sequence 
here.

Any suggestions on how to proceed?
Cheers!
Luca

Reply via email to