help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: macro only for shell-mode


From: Xah
Subject: Re: macro only for shell-mode
Date: Sat, 4 Oct 2008 03:48:31 -0700 (PDT)
User-agent: G2/1.0

Stefan Thomas wrote:
«
I have (succesfully!!) defined some macros.
But I want them to use only in shell-mode.

But how can I customize shell-mode-hook?
»

Here's a example:

(add-hook 'html-mode-hook
 (lambda ()
 (define-key html-mode-map (kbd "<M-left>") 'sgml-skip-tag-backward)
 (define-key html-mode-map (kbd "<M-right>") 'sgml-skip-tag-forward)
;...
; your macro definition here
 )
)

  Xah
∑ http://xahlee.org/

reply via email to

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