Add additional w3m keybindings

This commit is contained in:
Jeremy Dormitzer 2020-02-07 10:29:34 -05:00
parent e04175ccdd
commit d5b3d29181

View File

@ -253,7 +253,7 @@ Adds Evil commands to comment out lines of code:
#+BEGIN_SRC emacs-lisp
(use-package evil-commentary
:after (evil)
:config (evil-commentary-mode))
:hook ((prog-mode . evil-commentary-mode)))
#+END_SRC
** Additional keybindings
#+BEGIN_SRC emacs-lisp
@ -3318,13 +3318,19 @@ Browsing the web from Emacs. Relies on having [[http://w3m.sourceforge.net/][w3m
w3m-browse-url
w3m-search-new-session)
:config
(general-def 'normal w3m-mode-map "SPC" leader-map)
(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")))
"www.washingtonpost.com"))
:general
('normal w3m-mode-map "SPC" leader-map)
('normal w3m-mode-map "gs" #'w3m-search)
('normal w3m-mode-map "gS" #'w3m-search-new-session)
('normal w3m-mode-map "gl" #'link-hint-open-link)
('normal w3m-mode-map "gc" #'link-hint-copy-link)
('normal w3m-mode-map "zc" #'w3m-print-current-url))
(jdormit/define-prefix "aw" "w3m")
(leader-def-key "aww" 'w3m)