Explorar el Código

fix diff-mode-hook

pull/1/head
10sr hace 12 años
padre
commit
1c9ec0e10b
Se han modificado 1 ficheros con 18 adiciones y 17 borrados
  1. +18
    -17
      emacs.el

+ 18
- 17
emacs.el Ver fichero

@@ -635,26 +635,27 @@ drill-instructor.el"
(add-hook 'diff-mode-hook (add-hook 'diff-mode-hook
(lambda () (lambda ()
(view-mode 1) (view-mode 1)
(let ((s 'diff-header))
(set-face-foreground s nil)
(set-face-background s nil)
(set-face-bold-p s t))
(let ((s 'diff-file-header))
(set-face-foreground s nil)
(set-face-background s nil)
(set-face-bold-p s t))
(set-face-attribute 'diff-header nil
:foreground nil
:background nil
:weight 'bold)
(set-face-attribute 'diff-file-header nil
:foreground nil
:background nil
:weight 'bold)
(set-face-foreground 'diff-index-face "blue") (set-face-foreground 'diff-index-face "blue")
(let ((s 'diff-hunk-header))
(set-face-foreground s "cyan")
(set-face-bold-p s nil))
(let ((s 'diff-context))
;; (set-face-foreground s "white")
(set-face-bold-p s nil)
(set-face-foreground s nil))
(set-face-attribute 'diff-hunk-header nil
:foreground "cyan"
:weight 'normal)
(set-face-attribute 'diff-context nil
;; :foreground "white"
:foreground nil
:weight 'normal)
(set-face-foreground 'diff-removed-face "red") (set-face-foreground 'diff-removed-face "red")
(set-face-foreground 'diff-added-face "green") (set-face-foreground 'diff-added-face "green")
(set-face-foreground 'diff-changed-face "magenda")
(set-face-bold-p 'diff-changed nil)
(set-face-attribute 'diff-changed nil
:foreground "magenta"
:weight 'normal)
)) ))


;; (ffap-bindings) ;; (ffap-bindings)


Cargando…
Cancelar
Guardar