Mosè Giordano <[email protected]> writes: > Hi Uwe, > > 2015-09-15 12:34 GMT+02:00 Uwe Brauer <[email protected]>: >> Hello >> >> >> I am currently facing two problems: >> >> >> - I always thought that local-key-binding via hook replaces the >> global-key-binding (at least so it is in Xemacs) now in GNU Emacs I >> have >> set (global-set-key "\C-cr" 'ispell-region) >> (setq reftex-extra-bindings t) >> which according to the documentation should bind >> \C-cr to reftex-reference etc. It dos not >> >> - But I also have set >> >> (add-hook 'LaTeX-mode-hook 'my-latex-mode-key) >> >> (defun my-latex-mode-key () >> "Setting of the following keys" >> (interactive) >> (local-set-key [(control right)] 'my-turn-bidi-on) >> (local-set-key [(control left)] 'my-turn-bidi-off) >> (local-set-key [(f31)] 'TeX-fold-buffer) >> (local-set-key [(f30)] 'TeX-fold-clearout-buffer) >> (local-set-key [(control f30)] 'preview-clearout-buffer)) >> >> However this binding is ignored, the global-key-binding is taken >> instead. >> >> I have to evaluate the function my-latex-mode-key and then switch latex >> mode off and on. Very annoying. > > I can't reproduce your problem in Emacs 24.5 (and I don't think this > bug, if exists, has anything to do with AUCTeX).
It very much depends on what "But I also have set" is supposed to mean. If you add to LaTeX-mode-hook, of course this does not affect any buffers which are already in LaTeX-mode (for example by having loaded the desktop before setting up LaTeX-mode-hook). -- David Kastrup _______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
