Add keybinding setup for ace-link in eww mode

Configured ace-link keybinding for eww mode to ensure it works correctly by defining it within a setup function and adding a hook for eww-mode.
This commit is contained in:
Jeremy Dormitzer 2024-08-06 11:59:05 -04:00
parent 82bd3725a2
commit f4ff08e0ba

View File

@ -1,6 +1,11 @@
;; lexical-binding: t; -*- ;; lexical-binding: t; -*-
(use-package ace-link (use-package ace-link
:init
(defun ace-link-eww-setup ()
;; For some reason this keybinding wasn't working unless it's set here
(evil-define-key 'normal eww-mode-map "o" #'ace-link-eww))
(add-hook 'eww-mode-hook #'ace-link-eww-setup)
:general :general
(normal Info-mode-map "o" #'ace-link-info) (normal Info-mode-map "o" #'ace-link-info)
(normal help-mode-map "o" #'ace-link-help) (normal help-mode-map "o" #'ace-link-help)