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
]
beginner's question:add-hook&AUCTeX
,
Shiyuan
<=
Re: beginner's question:add-hook&AUCTeX
,
Tassilo Horn
,
2011/08/25
Re: beginner's question:add-hook&AUCTeX
,
PJ Weisberg
,
2011/08/26
Prev by Date:
My emacs on Windows doesn´t show Images (png, jpeg...) even with .dll-files
Next by Date:
Re: weird tab self insert behavior on windows -- how can I fix?
Previous by thread:
My emacs on Windows doesn´t show Images (png, jpeg...) even with .dll-files
Next by thread:
Re: beginner's question:add-hook&AUCTeX
Index(es):
Date
Thread