From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: macro only for shell-mode Date: Fri, 03 Oct 2008 18:38:41 -0400 Organization: A noiseless patient Spider Message-ID: References: <8c1eed9b0810030604n2a8d7bf3x69cf2a57339883fa@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1223073694 31334 80.91.229.12 (3 Oct 2008 22:41:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2008 22:41:34 +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 00:42:31 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 1KltLu-0007dF-Vm for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 00:42:28 +0200 Original-Received: from localhost ([127.0.0.1]:58564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KltKq-0001l6-TV for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 18:41:20 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news.motzarella.org!motzarella.org!barmar Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1/EOV/a0ch4E+FAHW4jXV2buC6af4S+T1S8m6SksaAogfl1C0E9edn5pE1UZeP7VNS8A3LECkrtxBx8N/mOtWSQ+gkQfb471zZYC6YW1Wyr2bsDJqdGkWp/nRgoinwy/fs= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Fri, 3 Oct 2008 22:38:42 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/25CsrWo6+I3xe84Sh/16rgVqMTT11AvI= Cancel-Lock: sha1:Nns8HhOCmoNqewUFgKRLbViyLP0= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:163003 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:58345 Archived-At: In article , "Stefan Thomas" wrote: > Dear Peter, > thanks for Your fast answer. > But how can I customize shell-mode-hook? > > 2008/10/3 Peter Dyballa > > > > > Am 03.10.2008 um 15:04 schrieb Stefan Thomas: > > > > I have (succesfully!!) defined some macros. > >> But I want them to use only in shell-mode. > >> > > > > > > You can customise shell-mode-hook. > > > > -- > > Mit friedvollen Grüßen > > > > Pete > > > > Der Unterschied zwischen Theorie und Praxis ist in der Praxis meist größer > > als in der Theorie > > > > > > (defun my-shell-mode-hook () (local-set-key ...) (local-set-key ...)) (add-to-list 'shell-mode-hook 'my-shell-mode-hook) -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***