From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stefan Thomas" Newsgroups: gmane.emacs.help Subject: Re: macro only for shell-mode Date: Sun, 5 Oct 2008 10:41:05 +0200 Message-ID: <8c1eed9b0810050141s6f59c431l745b79ef2a5dce04@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_49736_13201566.1223196065206" X-Trace: ger.gmane.org 1223196274 13811 80.91.229.12 (5 Oct 2008 08:44:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2008 08:44: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 Sun Oct 05 10:45:32 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 1KmPF3-0004oA-F4 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2008 10:45:29 +0200 Original-Received: from localhost ([127.0.0.1]:37088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmPE0-0000by-7C for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2008 04:44:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmPAs-0008D5-Sl for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 04:41:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmPAo-0008C8-Uk for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 04:41:10 -0400 Original-Received: from [199.232.76.173] (port=34682 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmPAo-0008C4-PC for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 04:41:06 -0400 Original-Received: from mail-gx0-f10.google.com ([209.85.217.10]:61968) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KmPAo-0003NP-F5 for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 04:41:06 -0400 Original-Received: by gxk3 with SMTP id 3so4216382gxk.18 for ; Sun, 05 Oct 2008 01:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=4nLPjODMqBAgXcZf013UN+bVuFCJrc2JhZRH8HrpbzE=; b=Fj/wEMC9awzwQTb4OkFMmzrEQ+snJcBpfbT2x1/qKn1tsFSfOvLntuU1Lvf3aVGeLC jWkj4/HkHcj1YVc2aArXxNepSCV8/WkK5toPofeNWfUniG3GDCLLazRVZZdatwsJ7sev p0bLfNFA1gqvkVRDkpealUZ/gSptBDqnIGTrc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=x9WdaqiQsRaMr4iKTCk2LyZnJwqB1f3hbnE7/Ciu0LYcYQMHortXMBG0IN4M9L5j8B Cdao/z9gA6qzTo3ON01XBLDtQSFFxe2Z0YwnsVXqZ8aoaF9wFQnpK++79RWv32x/goYU qt854Z4+R9gL6Pnd5R+ut12qkXOulwb5XlCD8= Original-Received: by 10.151.7.4 with SMTP id k4mr5261827ybi.128.1223196065226; Sun, 05 Oct 2008 01:41:05 -0700 (PDT) Original-Received: by 10.150.181.12 with HTTP; Sun, 5 Oct 2008 01:41:05 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:58370 Archived-At: ------=_Part_49736_13201566.1223196065206 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear all, sorry for bothering You again, but I didn't succed with all my trials until now. But I think what I want is very simple: I want, if I press the key "4" in shell-mode, the curser moves first one space to the left, then prints "4" and then goes to the end of the line. In other words: I want to substitue "4" with: C-b 4 C-e I have defined a macro ("viertel") wich does C-b 4 C-e, but I'm not able to associate this macro to the key 4. It would be great if I could get an advice how this can be done! Thanks for Your support, Stefan ------=_Part_49736_13201566.1223196065206 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Dear all,
sorry for bothering You again, but I didn't succed with all my trials until now. But I think what I want is very simple:
I want, if I press the key "4" in shell-mode,
the curser moves first one space to the left, then prints "4" and then goes to the end of the line.
In other words:
I want to substitue "4" with:
C-b 4 C-e
I have defined a macro  ("viertel") wich does C-b 4 C-e, but I'm not able to associate this macro to the key 4.
It would be great if I could get an advice how this can be done!
Thanks for Your support,
Stefan
------=_Part_49736_13201566.1223196065206--