From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: macro only for shell-mode Date: Sat, 4 Oct 2008 03:48:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6705dbda-ebfb-4e76-9a5d-0526e1e08352@a29g2000pra.googlegroups.com> References: <8c1eed9b0810030604n2a8d7bf3x69cf2a57339883fa@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1223120446 32270 80.91.229.12 (4 Oct 2008 11:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2008 11:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 04 13:41:42 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Km5W0-00055x-Kb for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 13:41:40 +0200 Original-Received: from localhost ([127.0.0.1]:44943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Km5Ux-00062w-AF for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 07:40:35 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a29g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1223117311 17417 127.0.0.1 (4 Oct 2008 10:48:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 4 Oct 2008 10:48:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a29g2000pra.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163008 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58349 Archived-At: Stefan Thomas wrote: =C2=AB I have (succesfully!!) defined some macros. But I want them to use only in shell-mode. But how can I customize shell-mode-hook? =C2=BB Here's a example: (add-hook 'html-mode-hook (lambda () (define-key html-mode-map (kbd "") 'sgml-skip-tag-backward) (define-key html-mode-map (kbd "") 'sgml-skip-tag-forward) ;... ; your macro definition here ) ) Xah =E2=88=91 http://xahlee.org/ =E2=98=84