chiark / gitweb /
el/dot-emacs.el: Do brace matching in m4 files.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 9 Jan 2014 08:49:47 +0000 (08:49 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 9 Jan 2014 08:56:50 +0000 (08:56 +0000)
No idea why this got turned off.

el/dot-emacs.el

index db3be62217dae9da2fcbab7e9d8461aa7e94871a..80f0f811f7d224a19b7d289c4debf1841f0c9bec 100644 (file)
@@ -2974,6 +2974,13 @@ (defun comint-send-and-indent ()
        (indent-for-tab-command)))
 
 (defun mdw-setup-m4 ()
+
+  ;; Inexplicably, Emacs doesn't match braces in m4 mode.  This is very
+  ;; annoying: fix it.
+  (modify-syntax-entry ?{ "(")
+  (modify-syntax-entry ?} ")")
+
+  ;; Fill prefix.
   (mdw-standard-fill-prefix "\\([ \t]*\\(?:#+\\|\\<dnl\\>\\)[ \t]*\\)"))
 
 ;;;--------------------------------------------------------------------------