[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/latex.el
From: |
Reiner Steib |
Subject: |
[AUCTeX-diffs] Changes to auctex/latex.el |
Date: |
Fri, 03 Feb 2006 15:37:14 +0000 |
Index: auctex/latex.el
diff -u auctex/latex.el:5.397 auctex/latex.el:5.398
--- auctex/latex.el:5.397 Tue Jan 24 11:31:25 2006
+++ auctex/latex.el Fri Feb 3 15:37:14 2006
@@ -4621,6 +4621,17 @@
(call-interactively 'self-insert-command))
(t (insert hyphen))))))
+(defcustom LaTeX-enable-toolbar t
+ "Enable LaTeX tool bar."
+ :group 'TeX-tool-bar
+ :type 'boolean)
+
+(defun LaTeX-maybe-install-toolbar ()
+ "Conditionally install tool bar buttons for LaTeX mode.
+Install tool bar if `LaTeX-enable-toolbar' is non-nil."
+ (when LaTeX-enable-toolbar
+ ;; Defined in `tex-bar.el':
+ (LaTeX-install-toolbar)))
;;; Mode
@@ -4679,6 +4690,7 @@
(TeX-run-mode-hooks 'text-mode-hook 'TeX-mode-hook 'LaTeX-mode-hook)
(TeX-set-mode-name)
(setq TeX-sentinel-default-function 'TeX-LaTeX-sentinel)
+ (add-hook 'tool-bar-mode-on-hook 'LaTeX-maybe-install-toolbar)
;; Defeat filladapt
(if (and (boundp 'filladapt-mode)
filladapt-mode)
- [AUCTeX-diffs] Changes to auctex/latex.el,
Reiner Steib <=