chiark / gitweb /
el/dot-emacs.el: Add multiple-major-mode configuration.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 30 Aug 2024 22:09:14 +0000 (23:09 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 30 Aug 2024 22:09:14 +0000 (23:09 +0100)
el/dot-emacs.el

index e7383adf76764a96e6d69ca2fec1edbe9c71eeab..4a5639c36c93b99ce05a7cd6b7e056f24463d8c2 100644 (file)
@@ -5380,6 +5380,17 @@ (progn
   (add-hook 'inferior-lisp-mode-hook
            #'(lambda () (local-set-key "\C-m" 'comint-send-and-indent)) t))
 
+;;;--------------------------------------------------------------------------
+;;; MMM configuration.
+
+(setq mmm-global-mode 'maybe
+      mmm-submode-decoration-level 1)
+
+(mmm-add-classes '((cweb :submode c
+                        :face mmm-code-submode-face
+                        :front "^@[(<].*@>\s-*="
+                        :back "^@[* ]")))
+
 ;;;--------------------------------------------------------------------------
 ;;; Other languages.