summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-09-01 23:09:50 -0400
committerKyle Meyer <kyle@kyleam.com>2020-09-01 23:09:50 -0400
commit4ffed9b40a6c432708273dfba89cbe8e854daf76 (patch)
treeefb5c9430a731708c31e78a1ff7568a79211db63
parente264d496ee390fb527aadace1e4ad66b166a3668 (diff)
downloademacs.d-4ffed9b40a6c432708273dfba89cbe8e854daf76.tar.gz
eww-follow-link: Flip meaning of single and double prefix arg
-rw-r--r--init.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/init.el b/init.el
index 1eff0bd..ddd31cd 100644
--- a/init.el
+++ b/init.el
@@ -2391,6 +2391,19 @@
(setq bookmark-save-flag nil)
+(use-package eww
+ :config
+ (advice-add
+ 'eww-follow-link :around
+ (lambda (fn &optional external mouse-event)
+ (funcall fn
+ (pcase external
+ ('(4) (list 16))
+ ('(16) (list 4))
+ (_ external))
+ mouse-event))
+ '((name . "eww-follow-link--flip-external"))))
+
(use-package timer-list
:init
(put 'list-timers 'disabled nil))