Skip to content

Commit d91071d

Browse files
committed
feat(dired): add +dired-here
1 parent b044298 commit d91071d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/me-builtin.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,12 @@ or file path may exist now."
278278
:hook (dired-mode . turn-on-gnus-dired-mode)
279279
:custom
280280
(dired-dwim-target t)
281-
(dired-auto-revert-buffer t))
281+
(dired-auto-revert-buffer t)
282+
:init
283+
(defun +dired-here (&optional switches)
284+
"Run `dired' in DIR or in the current directory."
285+
(interactive (list (when current-prefix-arg (read-string "Dired listing switches: " dired-listing-switches))))
286+
(dired default-directory switches)))
282287

283288
(use-package doc-view
284289
:custom

0 commit comments

Comments
 (0)