changeset 85785:c3e74b102623

Tassilo Horn <tassilo at member.fsf.org> (ps-mode-map): Enable doc-view-minor-mode.
author Glenn Morris <rgm@gnu.org>
date Tue, 30 Oct 2007 06:30:34 +0000
parents b0dc7772c4dc
children ee323d09e432
files lisp/progmodes/ps-mode.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/ps-mode.el	Tue Oct 30 06:29:51 2007 +0000
+++ b/lisp/progmodes/ps-mode.el	Tue Oct 30 06:30:34 2007 +0000
@@ -529,7 +529,10 @@
 	 t))
   (set (make-local-variable 'comment-start) "%")
   ;; NOTE: `\' has a special meaning in strings only
-  (set (make-local-variable 'comment-start-skip) "%+[ \t]*"))
+  (set (make-local-variable 'comment-start-skip) "%+[ \t]*")
+  ;; enable doc-view-minor-mode => C-c C-c starts viewing the current ps file
+  ;; with doc-view-mode.
+  (doc-view-minor-mode 1))
 
 (defun ps-mode-show-version ()
   "Show current version of PostScript mode."