Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun search-google (&optional str)
- (interactive)
- (unless str
- (setq str (read-string "Google: ")))
- (long-operation
- (let ((url (concat "http://www.google.com/search?hl=ja&lr=lang_ja&num=20&q="
- (si:www-url-encode str))))
- ;─────────────────────
- ; 1. 標準ブラウザを使う場合
- ;(shell-execute url t)
- ; 2. browser.dll & browserex.l を使う場合
- ;(bx::navigate url)
- ; 3. www-mode を使う場合
- (www-open-url url)
- ; 4. 指定したブラウザを使う場合
- ;(call-process (concat "C:/usr/local/MozillaFirebird/MozillaFirebird.exe " url))
- ;─────────────────────
- )))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement