From f4ff08e0baf68a641d6f9e2c8025fd5fe23166e5 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 6 Aug 2024 11:59:05 -0400 Subject: [PATCH] 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. --- emacs/.emacs.d/config/init-navigation.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs/.emacs.d/config/init-navigation.el b/emacs/.emacs.d/config/init-navigation.el index cfbf90a..eff341a 100644 --- a/emacs/.emacs.d/config/init-navigation.el +++ b/emacs/.emacs.d/config/init-navigation.el @@ -1,6 +1,11 @@ ;; lexical-binding: t; -*- (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 (normal Info-mode-map "o" #'ace-link-info) (normal help-mode-map "o" #'ace-link-help)