[hydra] add eww

This commit is contained in:
contrapunctus 2021-08-15 01:08:07 +05:30
parent 26cd72b160
commit 418a6a3bc8
1 changed files with 11 additions and 1 deletions

View File

@ -992,6 +992,15 @@ Unique key-values for task "Exercise"
("f" . #'eww-forward-url)
("v" . nil)))
(defun my-eww ()
(interactive)
(cond ((derived-mode-p 'dired-mode)
(eww-open-file
(dired-file-name-at-point)))
((derived-mode-p 'html-mode)
(eww-open-file (buffer-file-name)))
(t (call-interactively #'eww))))
#+END_SRC
**** url-cookie
Ask for confirmation before saving cookies. I'd rather just disallow them all though 🤔
@ -1531,7 +1540,8 @@ _u_: next word ^_l_: edit lines^ _s_: next whole symbol
("k" (my-start-app-or-switch "keepassxc") "KeePassXC")
("t" (my-start-app-or-switch "xfce4-terminal") "terminal")
("T" (my-start-app-or-switch "transmission-gtk") "bittorrent")
("s" (my-start-app-or-switch "xfce4-screenshooter") "screenshot"))
("s" (my-start-app-or-switch "xfce4-screenshooter") "screenshot")
("w" my-eww "eww"))
#+END_SRC
*** org
#+BEGIN_SRC emacs-lisp