[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: macro only for shell-mode
From: |
Barry Margolin |
Subject: |
Re: macro only for shell-mode |
Date: |
Fri, 03 Oct 2008 18:38:41 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.145.1223045354.25473.help-gnu-emacs@gnu.org>,
"Stefan Thomas" <kontrapunktstefan@googlemail.com> wrote:
> Dear Peter,
> thanks for Your fast answer.
> But how can I customize shell-mode-hook?
>
> 2008/10/3 Peter Dyballa <Peter_Dyballa@web.de>
>
> >
> > 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 ***