[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to properly load AUCTeX for Emacs 23+
From: |
Sebastien Vauban |
Subject: |
How to properly load AUCTeX for Emacs 23+ |
Date: |
Thu, 15 May 2014 20:21:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (windows-nt) |
Hello,
[This was posted first to comp.text.tex but did not receive any
answer -- trying here!]
Trying to make the smallest Emacs configuration needed for editing LaTeX
with AUCTeX (which has to work as well for Emacs 23), I came up with the
following:
--8<---------------cut here---------------start------------->8---
;; AUCTeX + preview-latex
(add-to-list 'load-path "~/.emacs.d/elpa/auctex-11.87.3") ;; <- update this!
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
--8<---------------cut here---------------end--------------->8---
from the current documentation found on
http://www.gnu.org/software/auctex/manual/auctex/Loading-the-package.html.
However,
- When loading a .tex file, I had different errors (such as
"void-function font-latex-setup") which forced me to add different
libraries to load during Emacs startup.
- `preview-latex.el' does NOT exist: it now (?) is `preview.el'.
Hence, this new configuration file which seems to work fine (so far):
--8<---------------cut here---------------start------------->8---
;; AUCTeX
(add-to-list 'load-path "~/.emacs.d/elpa/auctex-11.87.3") ;; <- update this!
(load "auctex.el" nil t t)
(load "font-latex.el" nil t t)
(load "tex-bar.el" nil t t)
;; preview-latex
(load "preview.el" nil t t)
--8<---------------cut here---------------end--------------->8---
Am I doing something wrong? Is the doc NOT up-to-date? Are both true? ;-)
Best regards,
Seb
--
Sebastien Vauban
- How to properly load AUCTeX for Emacs 23+,
Sebastien Vauban <=