Skip to content

Instantly share code, notes, and snippets.

@tejasbubane
Forked from ping13/howdoi-integration.el
Last active January 1, 2016 09:29
Show Gist options
  • Save tejasbubane/8125676 to your computer and use it in GitHub Desktop.
Save tejasbubane/8125676 to your computer and use it in GitHub Desktop.
;; call howdoi, https://github.com/gleitz/howdoi
;; Make sure this is installed first
(defvar howdoi-history nil "History for howdoi lookups, see `howdoi'")
(defun howdoi ()
"Interactive function for howdoi queries. It takes the current
word and invokes a minibuffer where the user can accept or change
the query."
(interactive)
(shell-command
(concat "howdoi "
(read-from-minibuffer "howdoi: "
(current-word) nil nil 'howdoi-history))
"*Howdoi Query*"
)
(set-buffer "*Howdoi Query*")
(help-mode))
(global-set-key "\C-h\C-o" 'howdoi)
(provide 'howdoi-integration)
;; Add this file to load-path and (require 'howdoi-integration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment