[Top][All Lists]

[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 

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


View this message in context:
Sent from the Emacs - Help mailing list archive at

reply via email to

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