]> code.delx.au - gnu-emacs-elpa/blob - packages/auctex/tex-site.el
Don't provide the features auto-loads and preview-latex included in tex-site.
[gnu-emacs-elpa] / packages / auctex / tex-site.el
1 ;;; tex-site.el - Site specific variables. Don't edit.
2
3 ;; Copyright (C) 2005 Free Software Foundation, Inc.
4 ;;
5 ;; completely rewritten.
6
7 ;; Author: David Kastrup <dak@gnu.org>
8 ;; Maintainer: auctex-devel@gnu.org
9 ;; Keywords: tex
10
11 ;; This file is part of AUCTeX.
12
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)
16 ;; any later version.
17
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.
22
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
26 ;; 02110-1301, USA.
27
28 ;;; Commentary:
29
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
34 ;; to the file.
35
36 ;; All user customization should be done with
37 ;; M-x customize-variable RET
38
39 ;;; Code:
40
41 (if (< emacs-major-version 21)
42 (error "AUCTeX requires Emacs 21 or later"))
43
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.
46 (defgroup AUCTeX nil
47 "A (La)TeX environment."
48 :tag "AUCTeX"
49 :link '(custom-manual "(auctex)Top")
50 :link '(url-link :tag "Home Page" "http://www.gnu.org/software/auctex/")
51 :prefix "TeX-"
52 :group 'tex
53 :load "tex" :load "latex" :load "tex-style")
54
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).")
60
61 (add-to-list 'load-path TeX-lisp-directory)
62
63 (defvar TeX-data-directory (file-name-directory load-file-name)
64 "The directory where the AUCTeX non-Lisp data is located.")
65
66 (defcustom TeX-auto-global
67 "/usr/local/var/auctex"
68 "*Directory containing automatically generated information.
69 Must end with a directory separator.
70
71 For storing automatic extracted information about the TeX macros
72 shared by all users of a site."
73 :group 'TeX-file
74 :type 'directory)
75
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.")
83
84 (defalias 'TeX-load-hack 'ignore)
85
86 (add-hook 'tex-site-unload-hook
87 (lambda ()
88 (let ((list after-load-alist))
89 (while list
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))
95 (tail alist)
96 (key 'TeX-modes-set))
97 (while tail
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))))
104
105 (defun TeX-modes-set (var value &optional update)
106 "Set VAR (which should be `TeX-modes') to VALUE.
107
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
112 definition."
113 (custom-set-default var value)
114 (let ((list TeX-mode-alist) elt)
115 (while list
116 (setq elt (car (pop list)))
117 (when (or update (null (get elt 'tex-saved)))
118 (when (fboundp elt)
119 (put elt 'tex-saved (symbol-function elt))))
120 (defalias elt
121 (if (memq elt value)
122 (intern (concat "TeX-" (symbol-name elt)))
123 (get elt 'tex-saved))))))
124
125 (defcustom TeX-modes
126 (mapcar 'car TeX-mode-alist)
127 "List of modes provided by AUCTeX.
128
129 This variable can't be set normally; use customize for that, or
130 set it with `TeX-modes-set'."
131 :type (cons 'set
132 (mapcar (lambda(x) (list 'const (car x))) TeX-mode-alist))
133 :set 'TeX-modes-set
134 :group 'AUCTeX
135 :initialize (lambda (var value)
136 (custom-initialize-reset var value)
137 (let ((list TeX-mode-alist))
138 (while list
139 (eval-after-load (cdar list)
140 `(TeX-modes-set ',var ,var t))
141 (setq list (cdr list))))))
142
143 (defconst AUCTeX-version "11.87"
144 "AUCTeX version.
145 If not a regular release, the date of the last change.")
146
147 (defconst AUCTeX-date "2012-11-30"
148 "AUCTeX release date using the ISO 8601 format, yyyy-mm-dd.")
149
150 ;; Store bibitems when saving a BibTeX buffer
151 (add-hook 'bibtex-mode-hook 'BibTeX-auto-store)
152
153 ;;; auto-loads.el --- automatically extracted autoloads
154 ;;
155 ;;; Code:
156
157 \f
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
161
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.
167
168 \(fn ARG)" t nil)
169
170 (autoload 'turn-on-bib-cite "bib-cite" "\
171 Unconditionally turn on Bib Cite mode.
172
173 \(fn)" nil nil)
174
175 ;;;***
176 \f
177 ;;;### (autoloads (context-mode) "context" "context.el" (19707 64211
178 ;;;;;; 0 0))
179 ;;; Generated autoloads from context.el
180
181 (defalias 'ConTeXt-mode 'context-mode)
182
183 (autoload 'context-mode "context" "\
184 Major mode in AUCTeX for editing ConTeXt files.
185
186 Special commands:
187 \\{ConTeXt-mode-map}
188
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.
192
193 \(fn)" t nil)
194
195 ;;;***
196 \f
197 ;;;### (autoloads (context-en-mode) "context-en" "context-en.el"
198 ;;;;;; (19618 16518 0 0))
199 ;;; Generated autoloads from context-en.el
200
201 (autoload 'context-en-mode "context-en" "\
202 Major mode for editing files for ConTeXt using its english interface.
203
204 Special commands:
205 \\{ConTeXt-mode-map}
206
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.
210
211 \(fn)" t nil)
212
213 ;;;***
214 \f
215 ;;;### (autoloads (context-nl-mode) "context-nl" "context-nl.el"
216 ;;;;;; (19618 16529 0 0))
217 ;;; Generated autoloads from context-nl.el
218
219 (autoload 'context-nl-mode "context-nl" "\
220 Major mode for editing files for ConTeXt using its dutch interface.
221
222 Special commands:
223 \\{ConTeXt-mode-map}
224
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.
228
229 \(fn)" t nil)
230
231 ;;;***
232 \f
233 ;;;### (autoloads (font-latex-setup) "font-latex" "font-latex.el"
234 ;;;;;; (20561 45562 0 0))
235 ;;; Generated autoloads from font-latex.el
236
237 (autoload 'font-latex-setup "font-latex" "\
238 Setup this buffer for LaTeX font-lock. Usually called from a hook.
239
240 \(fn)" nil nil)
241
242 ;;;***
243 \f
244 ;;;### (autoloads (docTeX-mode TeX-latex-mode BibTeX-auto-store)
245 ;;;;;; "latex" "latex.el" (20659 51557 0 0))
246 ;;; Generated autoloads from latex.el
247
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.
251
252 \(fn)" nil nil)
253
254 (add-to-list 'auto-mode-alist '("\\.drv\\'" . latex-mode))
255
256 (autoload 'TeX-latex-mode "latex" "\
257 Major mode in AUCTeX for editing LaTeX files.
258 See info under AUCTeX for full documentation.
259
260 Special commands:
261 \\{LaTeX-mode-map}
262
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'.
266
267 \(fn)" t nil)
268
269 (add-to-list 'auto-mode-alist '("\\.dtx\\'" . doctex-mode))
270
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'.
275
276 \(fn)" t nil)
277
278 (defalias 'TeX-doctex-mode 'docTeX-mode)
279
280 ;;;***
281 \f
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
285
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.
292
293 \(fn SEPARATOR UNIQUE PROMPT TABLE &optional MP-PREDICATE REQUIRE-MATCH INITIAL HISTORY)" nil nil)
294
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.
301
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.
305
306 The return value is the string as entered in the minibuffer.
307
308 \(fn PROMPT TABLE &optional PREDICATE REQUIRE-MATCH INITIAL-INPUT HIST DEF INHERIT-INPUT-METHOD)" nil nil)
309
310 ;;;***
311 \f
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
315
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.
319
320 Special commands:
321 \\{plain-TeX-mode-map}
322
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.
326
327 \(fn)" t nil)
328
329 (autoload 'ams-tex-mode "plain-tex" "\
330 Major mode in AUCTeX for editing AmS-TeX files.
331 See info under AUCTeX for documentation.
332
333 Special commands:
334 \\{AmSTeX-mode-map}
335
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'.
339
340 \(fn)" t nil)
341
342 ;;;***
343 \f
344 ;;;### (autoloads (TeX-submit-bug-report TeX-auto-generate-global
345 ;;;;;; TeX-auto-generate TeX-tex-mode) "tex" "tex.el" (20665 1626
346 ;;;;;; 0 0))
347 ;;; Generated autoloads from tex.el
348
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.
352
353 The algorithm is as follows:
354
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'
360
361 \(fn)" t nil)
362
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.
366
367 \(fn TEX AUTO)" t nil)
368
369 (autoload 'TeX-auto-generate-global "tex" "\
370 Create global auto directory for global TeX macro definitions.
371
372 \(fn)" t nil)
373
374 (autoload 'TeX-submit-bug-report "tex" "\
375 Submit a bug report on AUCTeX via mail.
376
377 Don't hesitate to report any problems or inaccurate documentation.
378
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.
382
383 \(fn)" t nil)
384
385 ;;;***
386 \f
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
390
391 (autoload 'TeX-install-toolbar "tex-bar" "\
392 Install toolbar buttons for TeX mode.
393
394 \(fn)" t nil)
395
396 (autoload 'LaTeX-install-toolbar "tex-bar" "\
397 Install toolbar buttons for LaTeX mode.
398
399 \(fn)" t nil)
400
401 ;;;***
402 \f
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)
406
407 (defalias 'tex-fold-mode 'TeX-fold-mode)
408
409 ;;;***
410 \f
411 ;;;### (autoloads (tex-font-setup) "tex-font" "tex-font.el" (18341
412 ;;;;;; 54636 0 0))
413 ;;; Generated autoloads from tex-font.el
414
415 (autoload 'tex-font-setup "tex-font" "\
416 Setup font lock support for TeX.
417
418 \(fn)" nil nil)
419
420 ;;;***
421 \f
422 ;;;### (autoloads (TeX-texinfo-mode) "tex-info" "tex-info.el" (20659
423 ;;;;;; 23181 0 0))
424 ;;; Generated autoloads from tex-info.el
425
426 (defalias 'Texinfo-mode 'texinfo-mode)
427
428 (autoload 'TeX-texinfo-mode "tex-info" "\
429 Major mode in AUCTeX for editing Texinfo files.
430
431 Special commands:
432 \\{Texinfo-mode-map}
433
434 Entering Texinfo mode calls the value of `text-mode-hook' and then the
435 value of `Texinfo-mode-hook'.
436
437 \(fn)" t nil)
438
439 ;;;***
440 \f
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
444
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'.
448
449 \(fn)" t nil)
450
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'.
454
455 \(fn)" t nil)
456
457 ;;;***
458 \f
459 ;;;### (autoloads (texmathp-match-switch texmathp) "texmathp" "texmathp.el"
460 ;;;;;; (18489 3128 0 0))
461 ;;; Generated autoloads from texmathp.el
462
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
467 the buffer.
468 See the variable `texmathp-tex-commands' about which commands are checked.
469
470 \(fn)" t nil)
471
472 (autoload 'texmathp-match-switch "texmathp" "\
473 Search backward for any of the math switches.
474 Limit searched to BOUND.
475
476 \(fn BOUND)" nil nil)
477
478 ;;;***
479 \f
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")
483
484 ;;;***
485 \f
486 ;;(provide 'auto-loads)
487
488 ;;; preview-latex.el --- automatically extracted autoloads
489 ;;
490 ;;; Code:
491
492 \f
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
496
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
502 use will query.
503
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.
507
508 \(fn DIR &optional FORCE-OVERWRITE FORCE-SAVE)" t nil)
509
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.
514
515 \(fn)" nil nil)
516 (add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup)
517
518 (autoload 'preview-report-bug "preview" "\
519 Report a bug in the preview-latex package.
520
521 \(fn)" t nil)
522
523 ;;;***
524 \f
525 ;;(provide 'preview-latex)
526 ;; Local Variables:
527 ;; version-control: never
528 ;; no-byte-compile: t
529 ;; no-update-autoloads: t
530 ;; coding: utf-8
531 ;; End:
532 ;;; preview-latex.el ends here
533
534 (defvar preview-TeX-style-dir
535 (expand-file-name "latex" (file-name-directory load-file-name)))
536
537
538 ;; Local Variables:
539 ;; version-control: never
540 ;; no-byte-compile: t
541 ;; no-update-autoloads: t
542 ;; coding: utf-8
543 ;; End:
544 ;;; auto-loads.el ends here
545 (provide 'tex-site)
546 ;;; tex-site.el ends here