From 7b5903d85319addd6399a1e07a5f1b1204035885 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 17 Mar 2014 12:39:11 +0000 Subject: [PATCH 1/1] el/dot-emacs.el: Scala fontification fettling. The Scala mode is trying to do something clever with comment filling. Try to dissuade it. Also, use an explicit list of punctuation characters, because Scala mode (quite rightly) does a lot of fiddling with syntax tables. --- el/dot-emacs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index e341b93..2c5fa53 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -1495,6 +1495,9 @@ doesn't match any of the regular expressions in (defun mdw-fontify-scala () + ;; Comment filling. + (setq mdw-fill-prefix mdw-c-comment-fill-prefix) + ;; Define things to be fontified. (make-local-variable 'font-lock-keywords) (let ((scala-keywords @@ -1506,7 +1509,7 @@ doesn't match any of the regular expressions in "var" "while" "with" "yield")) (scala-constants (mdw-regexps "false" "null" "super" "this" "true")) - (punctuation "\\s.\\|\\s(\\|\\s)\\|\\s\\\\|\\s/")) + (punctuation "[-!%^&*=+:@#~/?\\|`]")) (setq font-lock-keywords (list -- 2.11.0