Set w3m as default browser for nytimes and wsj

This commit is contained in:
Jeremy Dormitzer 2020-05-07 11:15:27 -04:00
parent 63b767c279
commit 71d74675c3

View File

@ -4119,16 +4119,19 @@ Browsing the web from Emacs. Relies on having [[http://w3m.sourceforge.net/][w3m
#+BEGIN_SRC emacs-lisp
(use-package w3m
:commands (w3m
w3m-browse-url
w3m-search-new-session)
w3m-browse-url
w3m-search-new-session)
:init
(setq w3m-home-page "https://start.duckduckgo.com"
w3m-search-default-engine "duckduckgo"
w3m-cookie-reject-domains '("www.wsj.com"
"www.bbc.com"
"www.nytimes.com"
"www.washingtonpost.com")
w3m-use-tab-line nil)
w3m-search-default-engine "duckduckgo"
w3m-cookie-reject-domains '("www.wsj.com"
"www.bbc.com"
"www.nytimes.com"
"www.washingtonpost.com")
w3m-use-tab-line nil
browse-url-browser-function '(("nytimes.com" . browse-url-w3m)
("wsj.com" . browse-url-w3m)
("." . browse-url-default-browser)))
:general
('normal w3m-mode-map "SPC" leader-map)
('normal w3m-mode-map "J" #'w3m-previous-buffer)