summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-11-19 00:37:01 -0500
committerKyle Meyer <kyle@kyleam.com>2016-11-19 00:37:01 -0500
commitd3bf3204e14fd843b022baa3467309c69846ec49 (patch)
treef97b6b8d28a58f433e23f2007aa1c1e9d31e769b
parent8df84d4122bd492c300ff75b06f6fdbf086301ab (diff)
downloademacs.d-d3bf3204e14fd843b022baa3467309c69846ec49.tar.gz
helm: Add binding for dired command
-rw-r--r--init.el2
-rw-r--r--lisp/km-helm.el6
2 files changed, 8 insertions, 0 deletions
diff --git a/init.el b/init.el
index e12f18a..183e897 100644
--- a/init.el
+++ b/init.el
@@ -1204,11 +1204,13 @@
:init
(after 'helm-files
(bind-keys :map helm-find-files-map
+ ("C-c ." . km/helm-visit-in-dired)
("C-c b" . km/helm-find-file-below)
("C-c x" . km/helm-ff-org-open-file)
("C-c C-o" . km/helm-display-file)))
(after 'helm-locate
(bind-keys :map helm-generic-files-map
+ ("C-c ." . km/helm-visit-in-dired)
("C-c b" . km/helm-find-file-below)
("C-c x" . km/helm-ff-org-open-file)
("C-c C-o" . km/helm-display-file)))
diff --git a/lisp/km-helm.el b/lisp/km-helm.el
index b8d2dc0..f4471a1 100644
--- a/lisp/km-helm.el
+++ b/lisp/km-helm.el
@@ -29,6 +29,12 @@
(helm-exit-and-execute-action #'display-buffer)))
;;;###autoload
+(defun km/helm-visit-in-dired ()
+ (interactive)
+ (with-helm-alive-p
+ (helm-exit-and-execute-action #'helm-point-file-in-dired)))
+
+;;;###autoload
(defun km/helm-display-file ()
(interactive)
(with-helm-alive-p