• Tino Calancha's avatar
    Ibuffer: Erase output buffer before shell commands · d9fd1d32
    Tino Calancha authored
    * lisp/ibuf-macs.el (define-ibuffer-op): Add keyword arguments
    BEFORE and AFTER; they are forms to run before/after the operation.
    * lisp/ibuf-ext.el (ibuffer--maybe-erase-shell-cmd-output):
    New defun; if shell-command-dont-erase-buffer is nil, then
    erase shell command output buffer.
    (ibuffer-do-shell-command-pipe, ibuffer-do-shell-command-file): Use it.
    d9fd1d32
ibuf-macs.el 11.6 KB