Skip to content

Instantly share code, notes, and snippets.

@mechairoi mechairoi/google-eldoc.el
Last active Dec 12, 2015

What would you like to do?
(provide 'google-eldoc)
(require 'eldoc)
(require 'crxel)
(defun google-eldoc-turn-on-eldoc-mode ()
"Enable google-eldoc-mode"
(set (make-local-variable 'eldoc-documentation-function)
(defun google-eldoc-search-current-symbol-info ()
(let* ((symbol (thing-at-point 'symbol))
(url (format ""
(encode-coding-string symbol 'utf-8)))))
(crxel/eval (format "chrome.tabs.update({
url: \"%s\"
});" url))) ; XXX Escape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.