diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-05-23 01:38:34 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-05-23 01:38:34 -0400 |
commit | eb11e227b56d9cdc90d6aadcf14e2bb313456ac8 (patch) | |
tree | e7f0efb419f2fc16f3e3950a60cae83bbf6d7b67 | |
parent | 8bf29bb18409c420e1999cf7bc7d166390e00f75 (diff) | |
download | emacs.d-eb11e227b56d9cdc90d6aadcf14e2bb313456ac8.tar.gz |
Add display-buffer binding to helm-buffer-map
-rw-r--r-- | lisp/init-helm.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/init-helm.el b/lisp/init-helm.el index eba3ab1..da07081 100644 --- a/lisp/init-helm.el +++ b/lisp/init-helm.el @@ -9,6 +9,11 @@ (setq helm-man-or-woman-function #'woman) +(defun km/helm-display-buffer () + (interactive) + (with-helm-alive-p + (helm-quit-and-execute-action #'display-buffer))) + (defun km/helm-ff-org-open-file () "Run `org-open-file' from `helm-source-find-files'." (interactive) @@ -19,7 +24,9 @@ (global-set-key (kbd "C-x c") nil) (after 'helm-files - (define-key helm-find-files-map (kbd "C-c x") 'km/helm-ff-org-open-file)) + (define-key helm-find-files-map (kbd "C-c x") 'km/helm-ff-org-open-file) + ;; Overrides `helm-buffer-switch-other-frame'. + (define-key helm-buffer-map (kbd "C-c C-o") 'km/helm-display-buffer)) (define-key helm-map ";" 'helm-maybe-exit-minibuffer) |