Add additional w3m keybindings
This commit is contained in:
parent
e04175ccdd
commit
d5b3d29181
@ -253,7 +253,7 @@ Adds Evil commands to comment out lines of code:
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package evil-commentary
|
(use-package evil-commentary
|
||||||
:after (evil)
|
:after (evil)
|
||||||
:config (evil-commentary-mode))
|
:hook ((prog-mode . evil-commentary-mode)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Additional keybindings
|
** Additional keybindings
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+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-browse-url
|
||||||
w3m-search-new-session)
|
w3m-search-new-session)
|
||||||
:config
|
:config
|
||||||
(general-def 'normal w3m-mode-map "SPC" leader-map)
|
|
||||||
(setq w3m-home-page "https://start.duckduckgo.com"
|
(setq w3m-home-page "https://start.duckduckgo.com"
|
||||||
w3m-search-default-engine "duckduckgo"
|
w3m-search-default-engine "duckduckgo"
|
||||||
w3m-cookie-reject-domains '("www.wsj.com"
|
w3m-cookie-reject-domains '("www.wsj.com"
|
||||||
"www.bbc.com"
|
"www.bbc.com"
|
||||||
"www.nytimes.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")
|
(jdormit/define-prefix "aw" "w3m")
|
||||||
(leader-def-key "aww" 'w3m)
|
(leader-def-key "aww" 'w3m)
|
||||||
|
Loading…
Reference in New Issue
Block a user