[Top][All Lists]

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

[AUCTeX] Clean on closing buffer

From: Colin Jia Zheng
Subject: [AUCTeX] Clean on closing buffer
Date: Sat, 7 Mar 2009 15:08:46 +0000 (UTC)
User-agent: Mutt/1.5.17-muttng (2007-11-01)

Hi all,
I was trying to run TeX-clean on closing a tex file.

(add-hook 'TeX-mode-hook
    '(lambda ()
    (make-local-hook 'kill-buffer-hook)
    (add-hook 'kill-buffer-hook 'TeX-clean)))

works but now TeX-clean also gets executed on AUCTEX's other buffers (latex
output etc), which isn't desirable.  Looking forward to your help.


reply via email to

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