P
Size: a a a
P
AT
P
DL
P
y
PG
PG
y
PG
DL
y
DL
DL
y
PG
(use-package dired
:commands dired-do-kill-lines
:config
(defun dired-kill-lines-or-buffer (&optional arg)
"Convenient way to kill dired buffers.
Also see `dired-do-kill-lines'."
(interactive "P")
(when (zerop (dired-do-kill-lines arg))
(kill-buffer)))
:bind
([remap list-directory] . dired)
(:map dired-mode-map
([remap dired-do-kill-lines] . dired-kill-lines-or-buffer)))
DL
y
DL
PG