diff options
Diffstat (limited to 'ravi-init-navigation.el')
| -rw-r--r-- | ravi-init-navigation.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ravi-init-navigation.el b/ravi-init-navigation.el index f401273..04edf35 100644 --- a/ravi-init-navigation.el +++ b/ravi-init-navigation.el @@ -74,7 +74,26 @@ :ensure t ) +;; Search the web +(use-package webjump + :bind ("C-x g" . webjump) + :config + (progn + ;; Suggest word at point if possible + (defun webjump-read-string (prompt) + (let* ((prompt (concat prompt (if (word-at-point) (concat " (default: " (word-at-point) ")")) ": ")) + (input (read-string prompt))) + (if (webjump-null-or-blank-string-p input) (word-at-point) input))) + + ;; C++ reference + (add-to-list 'webjump-sites + '("cpp" . [simple-query "en.cppreference.com" + "http://en.cppreference.com/mwiki/index.php?title=Special:Search&search=" + ""])) + ) + ) +;; to do: add zeal-at-point (provide 'ravi-init-navigation) ;;; ravi-init-navigation.el ends here |
