[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/sxhkdrc-mode 543b1f8ecb 3/4: Fix M-q with bespoke keyma
From: |
ELPA Syncer |
Subject: |
[elpa] externals/sxhkdrc-mode 543b1f8ecb 3/4: Fix M-q with bespoke keymap and fundamental-mode parent |
Date: |
Fri, 10 Feb 2023 03:58:23 -0500 (EST) |
branch: externals/sxhkdrc-mode
commit 543b1f8ecb09d9290efcaa9a028e63f7c1b302a0
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Fix M-q with bespoke keymap and fundamental-mode parent
---
sxhkdrc-mode.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sxhkdrc-mode.el b/sxhkdrc-mode.el
index 9457576ba9..4aaf95e489 100644
--- a/sxhkdrc-mode.el
+++ b/sxhkdrc-mode.el
@@ -147,11 +147,12 @@ key chord chain (demarcated by a colon or semicolon)."
(indent-to indent))
'no-indent)))
+(defvar sxhkdrc-mode-map (make-sparse-keymap)
+ "Local keymap for `sxhkdrc-mode' buffers.")
+
;;;###autoload
-(define-derived-mode sxhkdrc-mode prog-mode "SXHKDRC"
+(define-derived-mode sxhkdrc-mode fundamental-mode "SXHKDRC"
"Major mode for editing sxhkdrc files (Simple X Hot Key Daemon)."
- ;; FIXME 2023-02-06: Why is `prog-fill-reindent-defun' not filling
- ;; comments?
(setq-local indent-line-function 'sxhkdrc-mode-indent-line
comment-start "#"
comment-start-skip (concat (regexp-quote comment-start) "+\\s *")