[OS X Emacs] enable hard wrap for latex-mode...

Bruno Cadonna cadonna at inf.unibz.it
Sun Mar 22 08:57:19 EDT 2009


Hi,

I use Aquamacs 1.7 on MacOs X 10.5.6.

I would like to have hard wrap enabled only for latex mode. If I add
turn-on-auto-fill to LaTeX-mode-hook through the "Customize AUCTeX" menu the
following things happen:

- to customizations.el the following line is added:
'(LaTeX-mode-hook (quote (preview-mode-setup smart-dnd-latex #[nil
"\300\301!\207" [TeX-fold-mode t] 2] LaTeX-install-toolbar turn-on-bib-cite
turn-on-reftex turn-on-auto-fill)))

- In the customization interface under LaTex-mode-hook the following appears:

LaTeX-mode-hook: 
'(preview-mode-setup smart-dnd-latex
		     #[nil "\300\301!\207"
			   [TeX-fold-mode t]
			   2]
		     LaTeX-install-toolbar turn-on-bib-cite turn-on-reftex turn-on-auto-fill)

   State: SAVED and set. (mismatch)

Note the word "mismatch" in parenthesis!

- if I open a .tex file the major mode seems to be "Fundamental" and the minor
modes "Wrap Spc", although in the menu bar the "LaTeX" and "Command" entry do
appear.

The rest of my customization.el is after my signature and my Preferences.el is
empty.


Does anyone have a suggestion?

Cheers,
Bruno




The rest of my customization.el is here:

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(LaTeX-mode-hook (quote (preview-mode-setup smart-dnd-latex #[nil
"\300\301!\207" [TeX-fold-mode t
] 2] LaTeX-install-toolbar turn-on-bib-cite turn-on-reftex turn-on-auto-fill)))
 '(aquamacs-additional-fontsets nil t)
 '(aquamacs-customization-version-id 172 t)
 '(transient-mark-mode t))
 
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )










More information about the MacOSX-Emacs mailing list