help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

beginner's question:add-hook&AUCTeX


From: Shiyuan
Subject: beginner's question:add-hook&AUCTeX
Date: Thu, 25 Aug 2011 00:30:29 -0500

Hi,
    I want to swap the C-j and C-m key. According to the documentation, AUCTeX will evaluate the LaTeX-mode-hook so I add the following to my .emacs,

(add-hook 'LaTeX-mode-hook (lambda()
                 (local-set-key (kbd "C-m") 'reindent-then-newline-and-indent)))
(add-hook 'LaTeX-mode-hook (lambda()
                 (local-set-key (kbd "C-j") 'newline)))

However, it has no effect. It seems it's not evaluated at all. Any help is appreciated.

Gu.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]