Created
July 4, 2012 15:11
-
-
Save syohex/3047828 to your computer and use it in GitHub Desktop.
yari-helm instead of yari-anything
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar yari-helm-source-ri-pages | |
'((name . "RI documentation") | |
(candidates . (lambda () (yari-ruby-obarray))) | |
(action ("Show with Yari" . yari)) | |
(candidate-number-limit . 300) | |
(requires-pattern . 2) | |
"Source for completing RI documentation.")) | |
(defun yari-helm (&optional rehash) | |
(interactive (list current-prefix-arg)) | |
(when current-prefix-arg (yari-ruby-obarray rehash)) | |
(helm :sources 'yari-helm-source-ri-pages :buffer "*yari*")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment