From 5cd1142b6b472a33e3d169faa20fdb9fe68f6c33 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Wed, 24 Feb 2021 20:43:27 +0100 Subject: dired, editing: Use function from crux --- lisp/init-dired.el | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lisp/init-dired.el') diff --git a/lisp/init-dired.el b/lisp/init-dired.el index b08fcff..2131c8f 100644 --- a/lisp/init-dired.el +++ b/lisp/init-dired.el @@ -1,11 +1,3 @@ -(defun dired-open-or-shell-command () - (interactive) - (if (eq system-type 'darwin) - ;; call open directly on darwin - (dired-do-shell-command "open" nil (dired-get-marked-files t)) - ;; otherwise prompt for shell command - (call-interactively 'dired-do-shell-command))) - (use-package dired :init ;; show human readable sizes in dired and sort dotfiles first @@ -14,8 +6,7 @@ ;; show human readable free space (setq directory-free-space-args "-h") - :bind (("M-" . dired-up-directory) - ("C-c C-o" . dired-open-or-shell-command)) + :bind (("M-" . dired-up-directory)) :config ;; group directories first in dired if supported -- cgit v1.2.3