[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about global-set-key
From: |
etienne |
Subject: |
Re: about global-set-key |
Date: |
Tue, 11 Sep 2012 01:59:09 -0700 (PDT) |
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.