From 4b0acd3441dd712eaa73a55abb815fd9a32a0279 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 13 Oct 2022 23:36:17 +1100 Subject: moving luwak-mode-map definition to be above the mode definition - so that the keybindings take effect --- luwak.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/luwak.el b/luwak.el index 744fed0..224ce83 100644 --- a/luwak.el +++ b/luwak.el @@ -36,9 +36,6 @@ ((plist-get luwak-data :no-tor) "Tor off") (t "Tor on")))) -(define-derived-mode luwak-mode special-mode (luwak-mode-name) - "Major mode for browsing the web using lynx -dump.") - (defvar luwak-mode-map (let ((kmap (make-sparse-keymap))) (define-key kmap "\t" 'forward-button) @@ -51,6 +48,9 @@ (define-key kmap "s" 'luwak-search) kmap)) +(define-derived-mode luwak-mode special-mode (luwak-mode-name) + "Major mode for browsing the web using lynx -dump.") + (defun luwak-open (url) (interactive "sUrl to open: ") (luwak-open-internal url current-prefix-arg 'luwak-add-to-history)) -- cgit v1.2.3