changeset 33965:dcb6f87d8280

(ps-mode): Set comment-start and comment-start-skip locally.
author Dave Love <fx@gnu.org>
date Tue, 28 Nov 2000 16:39:56 +0000
parents 686023ece47f
children aa4dc9792a0a
files lisp/progmodes/ps-mode.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/ps-mode.el	Tue Nov 28 15:36:30 2000 +0000
+++ b/lisp/progmodes/ps-mode.el	Tue Nov 28 16:39:56 2000 +0000
@@ -533,6 +533,9 @@
         mode-name  "PostScript")
   (use-local-map ps-mode-map)
   (set-syntax-table ps-mode-syntax-table)
+  (set (make-local-variable 'comment-start) "%")
+  (set (make-local-variable 'comment-start-skip)
+       "\\(\\(^\\|[^\\]\\)\\(\\\\\\\\\\)*\\)\\(%+ *\\)")
   (run-hooks 'ps-mode-hook))
 
 (defun ps-mode-show-version ()