On Thu, Aug 23, 2012 at 12:56:27PM +0000, NOGUET Dominique wrote:
> Hi,
> 
> I managed to get Local variables to work in non LaTeX file (e.g in a text 
> file)!
> Then I tried to make LaTeX mode to run 'lighter' by removing all the hooks. 
> => managed to get Local variables to work in .tex files too :-)
> Put the hooks back one by one to find the nasty one. And my conclusion is : 
> (add-hook 'LaTeX-mode-hook 'visual-line-mode) was guilty.

mmm... i define a function in my .emacs that contains a few customisations
for auctex and which i add to LaTeX-mode-hook:

(defun jk-LaTeX-mode-hook-function ()
  "Function to add to LaTeX-mode-hook."
  (TeX-fold-mode 1)
  (local-set-key "\C-cb" 'ebib-insert-bibtex-key)
  (local-set-key "\C-cs" 'ebib-entry-summary)
  (local-set-key "\M-[" 'TeX-insert-braces)
  (local-set-key [C-return] 'TeX-fold-paragraph)
  (visual-line-mode t)
  (adaptive-wrap-prefix-mode t))

as you can see, i also turn on visual-line-mode, but i have no problem with
local variables...

have you tried activating visual-line-mode *without* any of the other
hooks? perhaps there's some interaction involving not just
visual-line-mode...

j.


-- 
Joost Kremers
Life has its moments

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to