]> git.eshelyaron.com Git - emacs.git/commitdiff
(ps-mode): Set comment-start and
authorDave Love <fx@gnu.org>
Tue, 28 Nov 2000 16:39:56 +0000 (16:39 +0000)
committerDave Love <fx@gnu.org>
Tue, 28 Nov 2000 16:39:56 +0000 (16:39 +0000)
comment-start-skip locally.

lisp/progmodes/ps-mode.el

index 5c821d64a74bd5708cf41e0e56e1a74ab94aa29a..3d011672d8edacdba5ccdcb649ba38f37c191467 100644 (file)
@@ -533,6 +533,9 @@ Typing \\<ps-run-mode-map>\\[ps-run-goto-error] when the cursor is at the number
         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 ()