auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding various TeX commands to single key


From: pglpm
Subject: Re: Binding various TeX commands to single key
Date: Sat, 4 Jun 2022 13:07:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

Thank you Ikumi, works like a charm!

On 2022-06-04 11:33, Ikumi Keita wrote:
Use `TeX-command' for that purpose. These would fit the bill:
(defun launch-latex ()
   (interactive)
   (TeX-master-file nil nil t) ; optional for most cases
   (TeX-command "LaTeX" #'TeX-master-file))

(define-key LaTeX-mode-map [f8] #'launch-latex)

And for "View", there is already a shortcut for it, you can just do
(define-key TeX-mode-map [f9] #'TeX-view)

Bye,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine



reply via email to

[Prev in Thread] Current Thread [Next in Thread]