瀏覽代碼

emacs.el: do not enable view-mode if major-mode is derived mode of diff-mode

pull/1/head
10sr 10 年之前
父節點
當前提交
fd4de45344
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      emacs.el

+ 4
- 1
emacs.el 查看文件

@@ -908,7 +908,10 @@ found, otherwise returns nil."
(setq diff-switches "-u")
(add-hook 'diff-mode-hook
(lambda ()
(view-mode 1)
(when (eq major-mode
'diff-mode)
;; do not pass when major-mode is derived mode of diff-mode
(view-mode 1))
(set-face-attribute 'diff-header nil
:foreground nil
:background nil


Loading…
取消
儲存