From ec007beac0f5e4db1b885f974443ff7619a7404d Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 11 Feb 2008 14:56:05 +0000 Subject: [PATCH] emacs, dot-emacs: Provide auto-filling for m4 (and autoconf). I'm surprised I hadn't done this already, actually... --- dot-emacs.el | 3 +++ emacs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/dot-emacs.el b/dot-emacs.el index 9fe9741..de720a0 100644 --- a/dot-emacs.el +++ b/dot-emacs.el @@ -1936,6 +1936,9 @@ strip numbers instead." (and mdw-auto-indent (indent-for-tab-command))) +(defun mdw-setup-m4 () + (mdw-standard-fill-prefix "\\([ \t]*\\(?:#+\\|\\\\)[ \t]*\\)")) + ;;;----- Text mode ---------------------------------------------------------- (defun mdw-text-mode () diff --git a/emacs b/emacs index 039f102..6d34822 100644 --- a/emacs +++ b/emacs @@ -493,6 +493,8 @@ (add-hook 'latex-mode-hook 'mdw-fontify-tex t) (add-hook 'sh-mode-hook #'mdw-setup-sh-script-mode) +(add-hook 'autoconf-mode-hook #'mdw-setup-m4) +(add-hook 'm4-mode-hook #'mdw-setup-m4) (add-hook 'smalltalk-mode-hook 'mdw-fontify-smalltalk t) (add-hook 'smalltalk-mode-hook 'mdw-setup-smalltalk t) -- 2.11.0