emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/luwak 4b0acd3441 09/28: moving luwak-mode-map definitio


From: ELPA Syncer
Subject: [elpa] externals/luwak 4b0acd3441 09/28: moving luwak-mode-map definition to be above the mode definition
Date: Tue, 25 Oct 2022 15:57:53 -0400 (EDT)

branch: externals/luwak
commit 4b0acd3441dd712eaa73a55abb815fd9a32a0279
Author: Yuchen Pei <hi@ypei.me>
Commit: Yuchen Pei <hi@ypei.me>

    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 744fed0c44..224ce836bb 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]