[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Local Variable ignored - almost got it
From: |
Joost Kremers |
Subject: |
Re: [AUCTeX] Local Variable ignored - almost got it |
Date: |
Thu, 23 Aug 2012 15:37:28 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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