aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-10-13 23:36:17 +1100
committerYuchen Pei <hi@ypei.me>2022-10-13 23:36:17 +1100
commit4b0acd3441dd712eaa73a55abb815fd9a32a0279 (patch)
treea0808acfcf0558114ba5299167584b6d165cb896
parent7652f876d00152e127a93767581bfedde6be61ce (diff)
moving luwak-mode-map definition to be above the mode definition
- so that the keybindings take effect
-rw-r--r--luwak.el6
1 files 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))