[Top][All Lists]

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

Re: [Bug-AUCTeX] Preview installed from the package manager changes LaTe

From: Tassilo Horn
Subject: Re: [Bug-AUCTeX] Preview installed from the package manager changes LaTeX-mode-hook
Date: Thu, 31 Jul 2014 14:22:56 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

César Asensio <address@hidden> writes:

Hi César,

> I'm a longtime AUCTeX user, and I've never felt the need of using
> Preview in my daily LaTeX editing.  Prior to the inclusion of AUCTeX
> in the Emacs package manager there was the possibility of loading
> AucTeX and Preview separately, but now they are both loaded
> automatically.  This in itself would be harmless if not for Preview
> changing the variable `LaTeX-mode-hook' *after* the init file
> settings.

I don't see why that's a problem.  Could you please elaborate a bit?

> Can this behavior be fixed, or customized in some way?

You could add this to your ~/.emacs to remove `LaTeX-preview-setup'
after the files that add it are loaded:

--8<---------------cut here---------------start------------->8---
(eval-after-load 'preview
  '(remove-hook 'LaTeX-mode-hook 'LaTeX-preview-setup))
;; If you're using AUCTeX from Git or release tarball                           
(eval-after-load 'preview-latex
  '(remove-hook 'LaTeX-mode-hook 'LaTeX-preview-setup))
;; If you're using AUCTeX from ELPA                                             
(eval-after-load "auctex-autoloads"
  '(remove-hook 'LaTeX-mode-hook 'LaTeX-preview-setup))
--8<---------------cut here---------------end--------------->8---


reply via email to

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