diff options
author | Yuchen Pei <hi@ypei.me> | 2022-10-13 23:36:17 +1100 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-10-13 23:36:17 +1100 |
commit | 4b0acd3441dd712eaa73a55abb815fd9a32a0279 (patch) | |
tree | a0808acfcf0558114ba5299167584b6d165cb896 | |
parent | 7652f876d00152e127a93767581bfedde6be61ce (diff) |
moving luwak-mode-map definition to be above the mode definition
- so that the keybindings take effect
-rw-r--r-- | luwak.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |