el/dot-emacs.el: Make operator symbols look like punctuation.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 3 Apr 2013 08:55:25 +0000 (09:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 3 Apr 2013 09:06:48 +0000 (10:06 +0100)
el/dot-emacs.el

index dc96aaf..a2117c3 100644 (file)
@@ -2271,6 +2271,12 @@ strip numbers instead."
   (modify-syntax-entry ?} ". 4b")
   (modify-syntax-entry ?\n ">")
 
+  ;; Make punctuation be punctuation
+  (let ((punct "=<>+-*/|&%!@?$.^:#`"))
+    (do ((i 0 (1+ i)))
+       ((>= i (length punct)))
+      (modify-syntax-entry (aref punct i) ".")))
+
   ;; Set fill prefix.
   (mdw-standard-fill-prefix "\\([ \t]*{?--?[ \t]*\\)")