Przeglądaj źródła

emacs: do not enable view-mode for diff-mode when visiting files

pull/1/head
10sr 10 lat temu
rodzic
commit
2689ece004
1 zmienionych plików z 3 dodań i 2 usunięć
  1. +3
    -2
      emacs.el

+ 3
- 2
emacs.el Wyświetl plik

@@ -914,8 +914,9 @@ found, otherwise returns nil."
(setq diff-switches "-u")
(add-hook 'diff-mode-hook
(lambda ()
(when (eq major-mode
'diff-mode)
(when (and (eq major-mode
'diff-mode)
(not buffer-file-name))
;; do not pass when major-mode is derived mode of diff-mode
(view-mode 1))
(set-face-attribute 'diff-header nil


Ładowanie…
Anuluj
Zapisz