diff options
| author | Steve Lee <me@xiangyangli.com> | 2017-12-13 19:01:56 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2017-12-13 19:01:56 +0800 |
| commit | c8005152e29314bd33a9198f17b92a77af414a19 (patch) | |
| tree | ec5f50b2c37b51cea6af92aa4e2c27bda36e7e76 /.emacs.d/lisp/init-evil.el | |
| parent | 841c71f5d266cb240006da14ecfb6b445bfc03cc (diff) | |
| download | dotfiles-c8005152e29314bd33a9198f17b92a77af414a19.tar.xz dotfiles-c8005152e29314bd33a9198f17b92a77af414a19.zip | |
add open url
Diffstat (limited to '.emacs.d/lisp/init-evil.el')
| -rw-r--r-- | .emacs.d/lisp/init-evil.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-evil.el b/.emacs.d/lisp/init-evil.el index 06e8236..b59adc1 100644 --- a/.emacs.d/lisp/init-evil.el +++ b/.emacs.d/lisp/init-evil.el @@ -20,6 +20,7 @@ "b" 'switch-to-buffer "q" 'quit-window "e" 'er/expand-region + "f" 'google-search ;; switch window "0" 'select-window-0 @@ -33,5 +34,11 @@ "8" 'select-window-8 "9" 'select-window-9) +(defun google-search () + (interactive) + (let (url) + (setq url (read-string "Enter search content:")) + (browse-url-firefox (concat "https://www.google.com/search?q=" url)))) + (provide 'init-evil) ;;; init-evil ends here |
