unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* no yank-last-arg (bash: ESC .) for *shell*
@ 2002-06-13 21:14 Dan Jacobson
  2002-06-14 12:57 ` Miles Bader
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2002-06-13 21:14 UTC (permalink / raw)


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?
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: no yank-last-arg (bash: ESC .) for *shell*
  2002-06-13 21:14 no yank-last-arg (bash: ESC .) for *shell* Dan Jacobson
@ 2002-06-14 12:57 ` Miles Bader
  0 siblings, 0 replies; 2+ messages in thread
From: Miles Bader @ 2002-06-14 12:57 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-14 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-13 21:14 no yank-last-arg (bash: ESC .) for *shell* Dan Jacobson
2002-06-14 12:57 ` Miles Bader

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).