From de0007cf22dc7a4767c1057db00c8091b8b1012f Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 9 May 2024 23:22:41 +0100 Subject: [PATCH] el/dot-emacs.el (mdw-fontify-perl): Use the standard autofill function. Cperl mode has its own crazy autofill which messes up earlier lines and doesn't get the dynamic fill prefix right. So beat it up and use the standard function. --- el/dot-emacs.el | 1 + 1 file changed, 1 insertion(+) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 542a6cb..a323e03 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -3447,6 +3447,7 @@ name, as a symbol." (modify-syntax-entry ?$ "\\" font-lock-syntax-table) (modify-syntax-entry ?: "." font-lock-syntax-table) (mdw-standard-fill-prefix "\\([ \t]*#+[ \t]*\\)") + (setq auto-fill-function #'do-auto-fill) ;; Now define fontification things. (make-local-variable 'font-lock-keywords) -- 2.11.0