Add a leader key for EWW

This commit is contained in:
Howard Abrams 2022-02-10 23:16:24 -08:00
parent fb01aa4728
commit 83e8f635d5

View file

@ -1038,7 +1038,7 @@ Often, but not always, I want a perspective based on an actual Git repository, e
"Create a new perspective, and then switch to the PROJECT using projectile.
If NAME is not given, then figure it out based on the name of the
PROJECT. If FILES aren't specified, then see if there is a
README. Otherwise, pull up a dired."
README. Otherwise, pull up Dired."
(interactive (list (projectile-completing-read "Project: " projectile-known-projects)))
(when (f-directory-p project)
(unless name
@ -1218,7 +1218,7 @@ Pushing directly to the upstream branch is /bad form/, as one should create a pu
Web pages look pretty good with EWW, but I'm having difficulty getting it to render a web search from DuckDuck.
#+BEGIN_SRC emacs-lisp
(use-package eww
(use-package eww
:init
(setq browse-url-browser-function 'eww-browse-url
browse-url-secondary-browser-function 'browse-url-default-browser
@ -1233,6 +1233,8 @@ Web pages look pretty good with EWW, but I'm having difficulty getting it to ren
url-privacy-level '(email))
:config
(ha-leader "a b" '("eww browser" . eww))
(evil-define-key 'normal eww-mode-map (kbd "Y") 'eww-copy-page-url)
(evil-define-key 'normal eww-mode-map (kbd "L") 'eww-list-bookmarks)
(evil-define-key 'normal eww-buffers-mode-map (kbd "q") 'eww-bookmark-kill)