如,修改Emacs-W3M的默认Search为DuckDuck Go ==> http://www.duckduckgo.com/?q=%s

(setq w3m-search-default-engine "DuckDuck Go")

(add-to-list 'w3m-search-engine-alist
    '("DuckDuck Go" "http://www.duckduckgo.com/?q=%s"))

(defadvice w3m-search (after change-default activate)
      (let ((engine (nth 1 minibuffer-history)))
  (when (assoc engine w3m-search-engine-alist)
    (setq w3m-search-default-engine engine))))

venmos
462 声望15 粉丝

Maccon, Emacscon, Lolicon, ACG. False geek, Looks like a quiet guy. Love open source, Loves photography and outdoor sports. Favorite programming language is Ruby and Lisp.


引用和评论

0 条评论