From: Miles Bader <miles@gnu.org>
Subject: Re: no yank-last-arg (bash: ESC .) for *shell*
Date: Fri, 14 Jun 2002 12:57:26 GMT [thread overview]
Message-ID: <87znxyxbka.fsf@tc-1-100.kawasaki.gol.ne.jp> (raw)
In-Reply-To: m2y9dinao8.fsf@jidanni.org
jidanni@deadspam.com (Dan Jacobson) writes:
> Bug: emacs lacks yank-last-arg, a common bash keybinding.
>
> How do us bash "ESC ." habituated people rebind ESC . in a *shell*
> window to do the bash thing (yank-last-arg) instead of find-tag?
If you have a recent version of emacs (e.g., CVS), it's bound to `C-c .'
in comint-derived modes (like shell-mode) -- I thought that `M-.' was too
general a binding for it in emacs, even thought it's handy.
The command name is `comint-insert-previous-argument'.
If you want it bound to `M-.', you can do:
(defun my-comint-mode-hook ()
(local-set-key "\M-." 'comint-insert-previous-argument))
(add-hook 'comint-mode-hook 'my-comint-mode-hook)
Stir as necessary.
-Miles
--
Suburbia: where they tear out the trees and then name streets after them.
prev parent reply other threads:[~2002-06-14 12:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-13 21:14 no yank-last-arg (bash: ESC .) for *shell* Dan Jacobson
2002-06-14 12:57 ` Miles Bader [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87znxyxbka.fsf@tc-1-100.kawasaki.gol.ne.jp \
--to=miles@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).