-
-
Save tejasbubane/8125676 to your computer and use it in GitHub Desktop.
This file contains 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
;; 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