all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to properly load AUCTeX for Emacs 23+
@ 2014-05-15 18:21 Sebastien Vauban
  2014-05-16 11:09 ` Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2014-05-15 18:21 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-21 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-15 18:21 How to properly load AUCTeX for Emacs 23+ Sebastien Vauban
2014-05-16 11:09 ` Tassilo Horn
     [not found]   ` <87k39m7zf1.fsf-Zv899e0YUSaUxwWP6IIDJeRUUwalv9w+@public.gmane.org>
2014-05-21 17:34     ` Sebastien Vauban

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.