auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] TeX-clean on closing buffer (Stefan Strohmeier)


From: Ralf Angeli
Subject: Re: [AUCTeX] TeX-clean on closing buffer (Stefan Strohmeier)
Date: Sun, 07 Nov 2010 15:04:28 +0100

* Stefan Strohmeier (2010-11-06) writes:

> I am trying to achieve the same behavior as Colin Jia Zheng in his post 
> (http://www.mail-archive.com/address@hidden/msg03234.html):
>
> I want to delete all LaTeX generated intermediate files when I kill a 
> latex-mode buffer, automatically.
>
> I put the code I found in that post in my emacs-file and it is working 
> properly one time. When I then want to open another file, e.g. via 
> recentf-mode I get the following error: 
>
> Symbol's value as variable is void: -clean-intermediate-suffixes
>
> The code I put in the .emacs-file is this:
>
> (add-hook 'LaTeX-mode-hook
>         (lambda ()
>               (add-hook 'kill-buffer-hook 'TeX-clean)))

As mentioned in the post you referenced above, setting the LOCAL
argument of `add-hook' should improve the situation.

-- 
Ralf



reply via email to

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