diff options
| author | Protesilaos Stavrou <info@protesilaos.com> | 2023-02-10 09:59:06 +0200 |
|---|---|---|
| committer | Protesilaos Stavrou <info@protesilaos.com> | 2023-02-10 10:01:06 +0200 |
| commit | 543b1f8ecb09d9290efcaa9a028e63f7c1b302a0 (patch) | |
| tree | 1135a0810808fc2f320fd4fab97283e65613f4c3 | |
| parent | 1ef985bd3376daf966e21c6e9f65ff746aabc868 (diff) | |
Fix M-q with bespoke keymap and fundamental-mode parent
| -rw-r--r-- | sxhkdrc-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sxhkdrc-mode.el b/sxhkdrc-mode.el index 9457576..4aaf95e 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 *") |
