diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-03-10 00:14:33 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-03-10 00:14:33 -0400 |
commit | 7feb46a375e072b361f08e9d799f20ac4b50f279 (patch) | |
tree | 6f047883cf923b76c0d8d99e84a5084185720e50 /lisp/init-helm.el | |
parent | d0cff250c9a73c45375a17b27dc933ae190c2825 (diff) | |
download | emacs.d-7feb46a375e072b361f08e9d799f20ac4b50f279.tar.gz |
Switch from ido to helm
Diffstat (limited to 'lisp/init-helm.el')
-rw-r--r-- | lisp/init-helm.el | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lisp/init-helm.el b/lisp/init-helm.el new file mode 100644 index 0000000..594b99a --- /dev/null +++ b/lisp/init-helm.el @@ -0,0 +1,31 @@ + +(require 'helm) +(require 'helm-config) + +(setq helm-split-window-in-side-p t + helm-move-to-line-cycle-in-source t + helm-ff-skip-boring-files t) + +(defun km/helm-ff-org-open-file () + "Run `org-open-file' from `helm-source-find-files'." + (interactive) + (with-helm-alive-p + (helm-quit-and-execute-action #'org-open-file))) + +(global-set-key (kbd "C-c h") 'helm-command-prefix) +(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-map ";" 'helm-maybe-exit-minibuffer) + +(key-chord-define-global "jc" 'helm-find-files) +(key-chord-define-global "jt" 'helm-mini) +(key-chord-define-global "kx" 'helm-M-x) + +(define-key search-map "k" 'helm-swoop) + +(helm-mode 1) + +(provide 'init-helm) |