1 ;;; tex-site.el - Site specific variables. Don't edit.
3 ;; Copyright (C) 2005 Free Software Foundation, Inc.
5 ;; completely rewritten.
7 ;; Author: David Kastrup <dak@gnu.org>
8 ;; Maintainer: auctex-devel@gnu.org
11 ;; This file is part of AUCTeX.
13 ;; AUCTeX is free software; you can redistribute it and/or modify it
14 ;; under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation; either version 3, or (at your option)
18 ;; AUCTeX is distributed in the hope that it will be useful, but
19 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 ;; General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
25 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
30 ;; This file contains startup code, autoloads and variables adapted to
31 ;; the local site configuration. It is generated and placed by the
32 ;; installation procedure and should not be edited by hand, nor moved
33 ;; to a different place, as some settings may be established relative
36 ;; All user customization should be done with
37 ;; M-x customize-variable RET
41 (if (< emacs-major-version 21)
42 (error "AUCTeX requires Emacs 21 or later"))
44 ;; Define here in order for `M-x customize-group <RET> AUCTeX <RET>'
45 ;; to work if the main AUCTeX files are not loaded yet.
47 "A (La)TeX environment."
49 :link '(custom-manual "(auctex)Top")
50 :link '(url-link :tag "Home Page" "http://www.gnu.org/software/auctex/")
53 :load "tex" :load "latex" :load "tex-style")
55 (defvar TeX-lisp-directory (file-name-directory load-file-name)
56 "The directory where most of the AUCTeX lisp files are located.
57 For the location of lisp files associated with
58 styles, see the variables TeX-style-* (hand-generated lisp) and
59 TeX-auto-* (automatically generated lisp).")
61 (add-to-list 'load-path TeX-lisp-directory)
63 (defvar TeX-data-directory (file-name-directory load-file-name)
64 "The directory where the AUCTeX non-Lisp data is located.")
66 (defcustom TeX-auto-global
67 "/usr/local/var/auctex"
68 "*Directory containing automatically generated information.
69 Must end with a directory separator.
71 For storing automatic extracted information about the TeX macros
72 shared by all users of a site."
76 (defconst TeX-mode-alist
77 '((tex-mode . tex-mode)
78 (plain-tex-mode . tex-mode)
79 (texinfo-mode . texinfo)
80 (latex-mode . tex-mode)
81 (doctex-mode . tex-mode))
82 "Alist of built-in TeX modes and their load files.")
84 (defalias 'TeX-load-hack 'ignore)
86 (add-hook 'tex-site-unload-hook
88 (let ((list after-load-alist))
90 ;; Adapted copy of the definition of `assq-delete-all'
91 ;; from Emacs 21 as substitute for
92 ;; `(assq-delete-all'TeX-modes-set (car list))' which
93 ;; fails on non-list elements in Emacs 21.
94 (let* ((alist (car list))
98 (if (and (consp (car tail))
99 (eq (car (car tail)) key))
100 (setq alist (delq (car tail) alist)))
101 (setq tail (cdr tail))))
102 (setq list (cdr list))))
103 (setq load-path (delq TeX-lisp-directory load-path))))
105 (defun TeX-modes-set (var value &optional update)
106 "Set VAR (which should be `TeX-modes') to VALUE.
108 This places either the standard or the AUCTeX versions of
109 functions into the respective function cell of the mode.
110 If UPDATE is set, a previously saved value for
111 the non-AUCTeX function gets overwritten with the current
113 (custom-set-default var value)
114 (let ((list TeX-mode-alist) elt)
116 (setq elt (car (pop list)))
117 (when (or update (null (get elt 'tex-saved)))
119 (put elt 'tex-saved (symbol-function elt))))
122 (intern (concat "TeX-" (symbol-name elt)))
123 (get elt 'tex-saved))))))
126 (mapcar 'car TeX-mode-alist)
127 "List of modes provided by AUCTeX.
129 This variable can't be set normally; use customize for that, or
130 set it with `TeX-modes-set'."
132 (mapcar (lambda(x) (list 'const (car x))) TeX-mode-alist))
135 :initialize (lambda (var value)
136 (custom-initialize-reset var value)
137 (let ((list TeX-mode-alist))
139 (eval-after-load (cdar list)
140 `(TeX-modes-set ',var ,var t))
141 (setq list (cdr list))))))
143 (defconst AUCTeX-version "11.87"
145 If not a regular release, the date of the last change.")
147 (defconst AUCTeX-date "2012-11-30"
148 "AUCTeX release date using the ISO 8601 format, yyyy-mm-dd.")
150 ;; Store bibitems when saving a BibTeX buffer
151 (add-hook 'bibtex-mode-hook 'BibTeX-auto-store)
153 ;;; auto-loads.el --- automatically extracted autoloads
158 ;;;### (autoloads (turn-on-bib-cite bib-cite-minor-mode) "bib-cite"
159 ;;;;;; "bib-cite.el" (18341 54637 0 0))
160 ;;; Generated autoloads from bib-cite.el
162 (autoload 'bib-cite-minor-mode "bib-cite" "\
163 Toggle bib-cite mode.
164 When bib-cite mode is enabled, citations, labels and refs are highlighted
165 when the mouse is over them. Clicking on these highlights with [mouse-2]
166 runs bib-find, and [mouse-3] runs bib-display.
170 (autoload 'turn-on-bib-cite "bib-cite" "\
171 Unconditionally turn on Bib Cite mode.
177 ;;;### (autoloads (context-mode) "context" "context.el" (19707 64211
179 ;;; Generated autoloads from context.el
181 (defalias 'ConTeXt-mode 'context-mode)
183 (autoload 'context-mode "context" "\
184 Major mode in AUCTeX for editing ConTeXt files.
189 Entering `context-mode' calls the value of `text-mode-hook',
190 then the value of `TeX-mode-hook', and then the value
191 of context-mode-hook.
197 ;;;### (autoloads (context-en-mode) "context-en" "context-en.el"
198 ;;;;;; (19618 16518 0 0))
199 ;;; Generated autoloads from context-en.el
201 (autoload 'context-en-mode "context-en" "\
202 Major mode for editing files for ConTeXt using its english interface.
207 Entering `context-mode' calls the value of `text-mode-hook',
208 then the value of TeX-mode-hook, and then the value
209 of context-mode-hook.
215 ;;;### (autoloads (context-nl-mode) "context-nl" "context-nl.el"
216 ;;;;;; (19618 16529 0 0))
217 ;;; Generated autoloads from context-nl.el
219 (autoload 'context-nl-mode "context-nl" "\
220 Major mode for editing files for ConTeXt using its dutch interface.
225 Entering `context-mode' calls the value of `text-mode-hook',
226 then the value of TeX-mode-hook, and then the value
227 of context-mode-hook.
233 ;;;### (autoloads (font-latex-setup) "font-latex" "font-latex.el"
234 ;;;;;; (20561 45562 0 0))
235 ;;; Generated autoloads from font-latex.el
237 (autoload 'font-latex-setup "font-latex" "\
238 Setup this buffer for LaTeX font-lock. Usually called from a hook.
244 ;;;### (autoloads (docTeX-mode TeX-latex-mode BibTeX-auto-store)
245 ;;;;;; "latex" "latex.el" (20659 51557 0 0))
246 ;;; Generated autoloads from latex.el
248 (autoload 'BibTeX-auto-store "latex" "\
249 This function should be called from `bibtex-mode-hook'.
250 It will setup BibTeX to store keys in an auto file.
254 (add-to-list 'auto-mode-alist '("\\.drv\\'" . latex-mode))
256 (autoload 'TeX-latex-mode "latex" "\
257 Major mode in AUCTeX for editing LaTeX files.
258 See info under AUCTeX for full documentation.
263 Entering LaTeX mode calls the value of `text-mode-hook',
264 then the value of `TeX-mode-hook', and then the value
265 of `LaTeX-mode-hook'.
269 (add-to-list 'auto-mode-alist '("\\.dtx\\'" . doctex-mode))
271 (autoload 'docTeX-mode "latex" "\
272 Major mode in AUCTeX for editing .dtx files derived from `LaTeX-mode'.
273 Runs `LaTeX-mode', sets a few variables and
274 runs the hooks in `docTeX-mode-hook'.
278 (defalias 'TeX-doctex-mode 'docTeX-mode)
282 ;;;### (autoloads (multi-prompt-key-value multi-prompt) "multi-prompt"
283 ;;;;;; "multi-prompt.el" (18915 28236 0 0))
284 ;;; Generated autoloads from multi-prompt.el
286 (autoload 'multi-prompt "multi-prompt" "\
287 Completing prompt for a list of strings.
288 The first argument SEPARATOR should be the string (of length 1) to
289 separate the elements in the list. The second argument UNIQUE should
290 be non-nil, if each element must be unique. The remaining elements
291 are the arguments to `completing-read'. See that.
293 \(fn SEPARATOR UNIQUE PROMPT TABLE &optional MP-PREDICATE REQUIRE-MATCH INITIAL HISTORY)" nil nil)
295 (autoload 'multi-prompt-key-value "multi-prompt" "\
296 Read multiple strings, with completion and key=value support.
297 PROMPT is a string to prompt with, usually ending with a colon
298 and a space. TABLE is an alist. The car of each element should
299 be a string representing a key and the optional cdr should be a
300 list with strings to be used as values for the key.
302 See the documentation for `completing-read' for details on the
303 other arguments: PREDICATE, REQUIRE-MATCH, INITIAL-INPUT, HIST,
304 DEF, and INHERIT-INPUT-METHOD.
306 The return value is the string as entered in the minibuffer.
308 \(fn PROMPT TABLE &optional PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF INHERIT-INPUT-METHOD)" nil nil)
312 ;;;### (autoloads (ams-tex-mode TeX-plain-tex-mode) "plain-tex" "plain-tex.el"
313 ;;;;;; (19707 64159 0 0))
314 ;;; Generated autoloads from plain-tex.el
316 (autoload 'TeX-plain-tex-mode "plain-tex" "\
317 Major mode in AUCTeX for editing plain TeX files.
318 See info under AUCTeX for documentation.
321 \\{plain-TeX-mode-map}
323 Entering `plain-tex-mode' calls the value of `text-mode-hook',
324 then the value of `TeX-mode-hook', and then the value
325 of plain-TeX-mode-hook.
329 (autoload 'ams-tex-mode "plain-tex" "\
330 Major mode in AUCTeX for editing AmS-TeX files.
331 See info under AUCTeX for documentation.
336 Entering AmS-tex-mode calls the value of `text-mode-hook',
337 then the value of `TeX-mode-hook', and then the value
338 of `AmS-TeX-mode-hook'.
344 ;;;### (autoloads (TeX-submit-bug-report TeX-auto-generate-global
345 ;;;;;; TeX-auto-generate TeX-tex-mode) "tex" "tex.el" (20665 1626
347 ;;; Generated autoloads from tex.el
349 (autoload 'TeX-tex-mode "tex" "\
350 Major mode in AUCTeX for editing TeX or LaTeX files.
351 Tries to guess whether this file is for plain TeX or LaTeX.
353 The algorithm is as follows:
355 1) if the file is empty or `TeX-force-default-mode' is not set to nil,
356 `TeX-default-mode' is chosen
357 2) If \\documentstyle or \\begin{, \\section{, \\part{ or \\chapter{ is
358 found, `latex-mode' is selected.
359 3) Otherwise, use `plain-tex-mode'
363 (autoload 'TeX-auto-generate "tex" "\
364 Generate style file for TEX and store it in AUTO.
365 If TEX is a directory, generate style files for all files in the directory.
367 \(fn TEX AUTO)" t nil)
369 (autoload 'TeX-auto-generate-global "tex" "\
370 Create global auto directory for global TeX macro definitions.
374 (autoload 'TeX-submit-bug-report "tex" "\
375 Submit a bug report on AUCTeX via mail.
377 Don't hesitate to report any problems or inaccurate documentation.
379 If you don't have setup sending mail from (X)Emacs, please copy the
380 output buffer into your mail program, as it gives us important
381 information about your AUCTeX version and AUCTeX configuration.
387 ;;;### (autoloads (LaTeX-install-toolbar TeX-install-toolbar) "tex-bar"
388 ;;;;;; "tex-bar.el" (18580 49499 0 0))
389 ;;; Generated autoloads from tex-bar.el
391 (autoload 'TeX-install-toolbar "tex-bar" "\
392 Install toolbar buttons for TeX mode.
396 (autoload 'LaTeX-install-toolbar "tex-bar" "\
397 Install toolbar buttons for LaTeX mode.
403 ;;;### (autoloads nil "tex-fold" "tex-fold.el" (19887 15736 0 0))
404 ;;; Generated autoloads from tex-fold.el
405 (autoload 'TeX-fold-mode "tex-fold" "Minor mode for hiding and revealing macros and environments." t)
407 (defalias 'tex-fold-mode 'TeX-fold-mode)
411 ;;;### (autoloads (tex-font-setup) "tex-font" "tex-font.el" (18341
413 ;;; Generated autoloads from tex-font.el
415 (autoload 'tex-font-setup "tex-font" "\
416 Setup font lock support for TeX.
422 ;;;### (autoloads (TeX-texinfo-mode) "tex-info" "tex-info.el" (20659
424 ;;; Generated autoloads from tex-info.el
426 (defalias 'Texinfo-mode 'texinfo-mode)
428 (autoload 'TeX-texinfo-mode "tex-info" "\
429 Major mode in AUCTeX for editing Texinfo files.
434 Entering Texinfo mode calls the value of `text-mode-hook' and then the
435 value of `Texinfo-mode-hook'.
441 ;;;### (autoloads (japanese-latex-mode japanese-plain-tex-mode) "tex-jp"
442 ;;;;;; "tex-jp.el" (20588 36944 0 0))
443 ;;; Generated autoloads from tex-jp.el
445 (autoload 'japanese-plain-tex-mode "tex-jp" "\
446 Major mode in AUCTeX for editing Japanese plain TeX files.
447 Set `japanese-TeX-mode' to t, and enter `TeX-plain-tex-mode'.
451 (autoload 'japanese-latex-mode "tex-jp" "\
452 Major mode in AUCTeX for editing Japanese LaTeX files.
453 Set `japanese-TeX-mode' to t, and enter `TeX-latex-mode'.
459 ;;;### (autoloads (texmathp-match-switch texmathp) "texmathp" "texmathp.el"
460 ;;;;;; (18489 3128 0 0))
461 ;;; Generated autoloads from texmathp.el
463 (autoload 'texmathp "texmathp" "\
464 Determine if point is inside (La)TeX math mode.
465 Returns t or nil. Additional info is placed into `texmathp-why'.
466 The functions assumes that you have (almost) syntactically correct (La)TeX in
468 See the variable `texmathp-tex-commands' about which commands are checked.
472 (autoload 'texmathp-match-switch "texmathp" "\
473 Search backward for any of the math switches.
474 Limit searched to BOUND.
476 \(fn BOUND)" nil nil)
480 ;;;### (autoloads nil "toolbar-x" "toolbar-x.el" (18580 49487 0 0))
481 ;;; Generated autoloads from toolbar-x.el
482 (autoload 'toolbarx-install-toolbar "toolbar-x")
486 ;;(provide 'auto-loads)
488 ;;; preview-latex.el --- automatically extracted autoloads
493 ;;;### (autoloads (preview-report-bug LaTeX-preview-setup preview-install-styles)
494 ;;;;;; "preview" "preview.el" (19772 31043 0 0))
495 ;;; Generated autoloads from preview.el
497 (autoload 'preview-install-styles "preview" "\
498 Installs the TeX style files into a permanent location.
499 This must be in the TeX search path. If FORCE-OVERWRITE is greater
500 than 1, files will get overwritten without query, if it is less
501 than 1 or nil, the operation will fail. The default of 1 for interactive
504 Similarly FORCE-SAVE can be used for saving
505 `preview-TeX-style-dir' to record the fact that the uninstalled
506 files are no longer needed in the search path.
508 \(fn DIR &optional FORCE-OVERWRITE FORCE-SAVE)" t nil)
510 (autoload 'LaTeX-preview-setup "preview" "\
511 Hook function for embedding the preview package into AUCTeX.
512 This is called by `LaTeX-mode-hook' and changes AUCTeX variables
513 to add the preview functionality.
516 (add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup)
518 (autoload 'preview-report-bug "preview" "\
519 Report a bug in the preview-latex package.
525 ;;(provide 'preview-latex)
527 ;; version-control: never
528 ;; no-byte-compile: t
529 ;; no-update-autoloads: t
532 ;;; preview-latex.el ends here
534 (defvar preview-TeX-style-dir
535 (expand-file-name "latex" (file-name-directory load-file-name)))
539 ;; version-control: never
540 ;; no-byte-compile: t
541 ;; no-update-autoloads: t
544 ;;; auto-loads.el ends here
546 ;;; tex-site.el ends here