From d5b3d2918161a6aba20ba4040b0a84d270c101bd Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 7 Feb 2020 10:29:34 -0500 Subject: [PATCH] Add additional w3m keybindings --- emacs/init.org | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index b049e13..26dbb7c 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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)