Skip to content

Instantly share code, notes, and snippets.

@syohex
Created July 4, 2012 15:11
Show Gist options
  • Save syohex/3047828 to your computer and use it in GitHub Desktop.
Save syohex/3047828 to your computer and use it in GitHub Desktop.
yari-helm instead of yari-anything
(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