all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Shiyuan <gshy2014@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: beginner's question:add-hook&AUCTeX
Date: Thu, 25 Aug 2011 00:30:29 -0500	[thread overview]
Message-ID: <CAOm4EMvC5coShRp7bEmJhj6UzidwHgyszGUZ1Box6ti2=8b_aA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 542 bytes --]

             reply	other threads:[~2011-08-25  5:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25  5:30 Shiyuan [this message]
2011-08-25  6:35 ` beginner's question:add-hook&AUCTeX Tassilo Horn
  -- strict thread matches above, loose matches on Subject: below --
2011-08-25 19:46 Re:Re:beginner's question: add-hook& AUCTeX Shiyuan
2011-08-25 19:57 ` beginner's " Jambunathan K
2011-08-26 14:53 ` Tassilo Horn
2011-08-26 16:42 beginner's question:add-hook&AUCTeX PJ Weisberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOm4EMvC5coShRp7bEmJhj6UzidwHgyszGUZ1Box6ti2=8b_aA@mail.gmail.com' \
    --to=gshy2014@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.