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

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

bug#42578: 28.0.50; [suggestion] allow dired-do-shell-command on directo


From: Marco Wahl
Subject: bug#42578: 28.0.50; [suggestion] allow dired-do-shell-command on directory line
Date: Fri, 31 Jul 2020 16:24:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Marco Wahl <marcowahlsoft@gmail.com> writes:

>>> I'm fine with closing this issue now.
>
>> Done.
>
> Thanks!
>
> The command dired-smart-shell-command AKA M-! can be bound to "!" in
> dired like so
>
> #v+
> (add-hook
>  'dired-mode-hook
>  (lambda ()
>    (define-key dired-mode-map "!" #'dired-smart-shell-command)))
> #v-
>
> For all the folks out there who want to save that extra "M-".
>
> Just for the record.

The above is not so clever because then the usual binding for ! in dired
for files gets overwritten.

Sorry for posting the above, that was too quick.


Best regards,
-- 
Marco






reply via email to

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