César Asensio <[email protected]> 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--- Bye, Tassilo _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
