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

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

[nongnu] scratch/rfc-mode 5a8a3a238e 29/52: Make the rfc-mode-map inheri


From: Stefan Monnier
Subject: [nongnu] scratch/rfc-mode 5a8a3a238e 29/52: Make the rfc-mode-map inherit from special-mode-map
Date: Wed, 12 Oct 2022 16:29:20 -0400 (EDT)

branch: scratch/rfc-mode
commit 5a8a3a238ee17ac3a17e73ac932097584fb14c61
Author: Daniel Martín <mardani29@yahoo.es>
Commit: Nicolas Martyanoff <khaelin@gmail.com>

    Make the rfc-mode-map inherit from special-mode-map
    
    * rfc-mode.el: Make rfc-mode-map inherit from special-mode-map to get
    interesting keybindings like SPC for scrolling, etc.
---
 rfc-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rfc-mode.el b/rfc-mode.el
index c7ee29b7b9..86a0cb2117 100644
--- a/rfc-mode.el
+++ b/rfc-mode.el
@@ -90,6 +90,7 @@ Assume RFC documents are named as e.g. rfc21.txt, 
rfc-index.txt."
 
 (defvar rfc-mode-map
   (let ((map (make-keymap)))
+    (set-keymap-parent map special-mode-map)
     (define-key map (kbd "q") 'rfc-mode-quit)
     (define-key map (kbd "<prior>") 'rfc-mode-backward-page)
     (define-key map (kbd "<next>") 'rfc-mode-forward-page)



reply via email to

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