From b6e25a4ca8156adc16485d273035648ddf2c9932 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 7 Apr 2012 00:55:46 +0900 Subject: [PATCH] enable view-mode on git output buffer --- emacs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index d6767f0..14ac716 100644 --- a/emacs.el +++ b/emacs.el @@ -1609,7 +1609,10 @@ when SEC is nil, stop auto save if enabled." (cd dir) (and (require 'ansi-color nil t) (ansi-color-apply-on-region (point-min) - (point-max)))))) + (point-max))) + (setq buffer-read-only t) + (view-mode 1) + ))) (define-key ctl-x-map "g" 'my-git-shell-command) (defun my-kill-buffers ()