Browse files

Merge pull request #2 from purcell/patch-2

Prefix all symbols with the library namespace
  • Loading branch information...
2 parents 6ca0e0b + 669c64d commit 8cdf5546b5594d7dd6f3c3973d72c1532c748ebd @dotemacs committed Feb 22, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 omniref.el
12 omniref.el
@@ -27,16 +27,16 @@
(defconst omniref-url ""
"Omniref query URL")
-(defun formatted-search-term (terms)
+(defun omniref-formatted-search-term (terms)
"Format the term for searching"
(replace-regexp-in-string "[[:space:]]+" "+" terms))
-(defun search-for (term)
+(defun omniref-search-for (term)
"Browse to Omniref with the search term"
- (concat omniref-url (formatted-search-term term))))
+ (concat omniref-url (omniref-formatted-search-term term))))
-(defun region-or-word ()
+(defun omniref-region-or-word ()
"Determine what should be searched, a highlighted region of
text or a word the cursor is on"
@@ -47,8 +47,8 @@
(defun omniref (keywords)
"Search Omniref, Ruby documentation search engine"
- (interactive (region-or-word))
- (search-for keywords))
+ (interactive (omniref-region-or-word))
+ (omniref-search-for keywords))
(provide 'omniref)

0 comments on commit 8cdf554

Please sign in to comment.