summaryrefslogtreecommitdiff
path: root/lisp/progmodes/ps-mode.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-10-30 06:31:50 +0000
committerGlenn Morris <rgm@gnu.org>2007-10-30 06:31:50 +0000
commit5b549c31a7863fb45ff175879337d14059a5ddbe (patch)
tree0ddc7ad8258e1a6e6954e841f57f6f6d8d6ab26f /lisp/progmodes/ps-mode.el
parent937cb3fb694e83f6b2b3ef570f3850a5c2cb6ce6 (diff)
downloademacs-5b549c31a7863fb45ff175879337d14059a5ddbe.tar.gz
emacs-5b549c31a7863fb45ff175879337d14059a5ddbe.tar.bz2
emacs-5b549c31a7863fb45ff175879337d14059a5ddbe.zip
Tassilo Horn <tassilo at member.fsf.org>
(ps-mode-map): Enable doc-view-minor-mode.
Diffstat (limited to 'lisp/progmodes/ps-mode.el')
-rw-r--r--lisp/progmodes/ps-mode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/ps-mode.el b/lisp/progmodes/ps-mode.el
index c791e217ccb..c131575f57c 100644
--- a/lisp/progmodes/ps-mode.el
+++ b/lisp/progmodes/ps-mode.el
@@ -529,7 +529,10 @@ Typing \\<ps-run-mode-map>\\[ps-run-goto-error] when the cursor is at the number
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."