bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no yank-last-arg (bash: ESC .) for *shell*


From: Miles Bader
Subject: Re: no yank-last-arg (bash: ESC .) for *shell*
Date: Fri, 14 Jun 2002 12:57:26 GMT

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]