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

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

[nongnu] scratch/rfc-mode 3719b9ce9f 20/52: derive rfc-mode from text-mo


From: Stefan Monnier
Subject: [nongnu] scratch/rfc-mode 3719b9ce9f 20/52: derive rfc-mode from text-mode
Date: Wed, 12 Oct 2022 16:29:19 -0400 (EDT)

branch: scratch/rfc-mode
commit 3719b9ce9fd4f23e072f268bb9bc100c92bf6a58
Author: Nicolas Martyanoff <khaelin@gmail.com>
Commit: Nicolas Martyanoff <khaelin@gmail.com>

    derive rfc-mode from text-mode
    
    Thanks to Stefan Monnier.
---
 rfc-mode.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/rfc-mode.el b/rfc-mode.el
index 985aaa4f01..dde636e31e 100644
--- a/rfc-mode.el
+++ b/rfc-mode.el
@@ -145,10 +145,8 @@ Assume RFC documents are named as e.g. rfc21.txt, 
rfc-index.txt."
         :sources (rfc-mode-browser-helm-sources rfc-mode-index-entries)))
 
 ;;;###autoload
-(define-derived-mode rfc-mode fundamental-mode "rfc-mode"
+(define-derived-mode rfc-mode text-mode "rfc-mode"
   "Major mode to browse and read RFC documents."
-  :syntax-table text-mode-syntax-table
-  :mode-map rfc-mode-map
   (rfc-mode-init))
 
 ;;;###autoload



reply via email to

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