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

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

Re: Does eshell have something similar to bash's yank-last-arg


From: Kai Großjohann
Subject: Re: Does eshell have something similar to bash's yank-last-arg
Date: Wed, 05 Mar 2003 08:11:23 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux)

brakjoller@hotmail.com (Barman Brakjoller) writes:

> Does eshell have something similar to bash's yank-last-arg:

I use this:

(defun kai-eshell-insert-last-word (n)
  (interactive "p")
  (insert (car (reverse
                (split-string
                 (eshell-previous-input-string (- n 1)))))))

Then I add a hook to bind the above to M-..

-- 
A preposition is not a good thing to end a sentence with.


reply via email to

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