diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-11-19 00:37:01 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-11-19 00:37:01 -0500 |
commit | d3bf3204e14fd843b022baa3467309c69846ec49 (patch) | |
tree | f97b6b8d28a58f433e23f2007aa1c1e9d31e769b | |
parent | 8df84d4122bd492c300ff75b06f6fdbf086301ab (diff) | |
download | emacs.d-d3bf3204e14fd843b022baa3467309c69846ec49.tar.gz |
helm: Add binding for dired command
-rw-r--r-- | init.el | 2 | ||||
-rw-r--r-- | lisp/km-helm.el | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -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 |