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. "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 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 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))) (interactive (list (projectile-completing-read "Project: " projectile-known-projects)))
(when (f-directory-p project) (when (f-directory-p project)
(unless name (unless name
@ -1233,6 +1233,8 @@ Web pages look pretty good with EWW, but I'm having difficulty getting it to ren
url-privacy-level '(email)) url-privacy-level '(email))
:config :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 "Y") 'eww-copy-page-url)
(evil-define-key 'normal eww-mode-map (kbd "L") 'eww-list-bookmarks) (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) (evil-define-key 'normal eww-buffers-mode-map (kbd "q") 'eww-bookmark-kill)