From: etienne <etienne.mann@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Re: about global-set-key
Date: Tue, 11 Sep 2012 01:59:09 -0700 (PDT) [thread overview]
Message-ID: <1347353949400-263713.post@n5.nabble.com> (raw)
In-Reply-To: <jwv3931993z.fsf-monnier+gnu.emacs.help@gnu.org>
Dear Stefan,
Finally I resolve my problem reading this page
http://ergoemacs.org/emacs/reclaim_keybindings.html
http://ergoemacs.org/emacs/reclaim_keybindings.html
Here is my new .emacs
*(defun parentheses () (interactive) (insert "()") (forward-char -1))
(defun modemath () (interactive)(insert "$$") (forward-char -1))
(defun souligne () (interactive)(insert "_{}") (forward-char -1))
(defun puissance () (interactive)(insert "^{}") (forward-char -1))
(add-hook 'LaTeX-mode-hook
(lambda ()
(define-key LaTeX-mode-map (kbd "(") 'parentheses)
(define-key LaTeX-mode-map (kbd "$") 'modemath)
(define-key LaTeX-mode-map (kbd "_") 'souligne)
(define-key LaTeX-mode-map (kbd "^") 'puissance)
)
)
*
Thank you very much for your hints
Etienne
--
View this message in context: http://emacs.1067599.n5.nabble.com/about-global-set-key-tp262753p263713.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
next prev parent reply other threads:[~2012-09-11 8:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7891.1346455860.855.help-gnu-emacs@gnu.org>
2012-09-01 13:17 ` about global-set-key Stefan Monnier
2012-09-11 8:30 ` etienne
2012-09-11 9:21 ` Peter Dyballa
2012-09-11 8:59 ` etienne [this message]
2012-08-31 23:12 etienne mann
2012-09-01 0:20 ` Thorsten Jolitz
2012-09-01 3:54 ` David Young
[not found] ` <mailman.7893.1346482862.855.help-gnu-emacs@gnu.org>
2012-09-01 13:19 ` Stefan Monnier
2012-09-11 8:21 ` etienne
2012-09-11 8:15 ` etienne
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=1347353949400-263713.post@n5.nabble.com \
--to=etienne.mann@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.