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

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

Re: dired: "!" How to see not just result, but !-cmd too?


From: Kevin Rodgers
Subject: Re: dired: "!" How to see not just result, but !-cmd too?
Date: Mon, 17 Jan 2005 09:40:13 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

David Combs wrote:
> Problem: the dired "!"-cmd leaves only it's *output* in *Shell Command
> Output*; sure be nice if it also left the *command* (and args) that
> got *executed*.
>
> So that if you come back to that buffer later on, there's
> no question as to what !-cmd you did "way back then"
> to *create* the buffer!

You can access previous shell commands at the `!' prompt via `M-p'.

If you want to keep each Dired buffer's commands separate from other
shell commands, try this:

(add-hook 'dired-mode-hook
          (lambda () (make-local-variable 'shell-command-history)))

--
Kevin Rodgers

reply via email to

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