Browse Source

Fix face name for Emacs 26

master
10sr 6 years ago
parent
commit
8c215deff7
Signed by: 10sr GPG Key ID: C384BB17CBB19347
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      emacs.el

+ 7
- 6
emacs.el View File

@@ -834,6 +834,7 @@ found, otherwise returns nil."
(defvar verilog-mode-map (make-sparse-keymap)) (defvar verilog-mode-map (make-sparse-keymap))
(define-key verilog-mode-map ";" 'self-insert-command)) (define-key verilog-mode-map ";" 'self-insert-command))



(setq diff-switches "-u") (setq diff-switches "-u")
(with-eval-after-load 'diff-mode (with-eval-after-load 'diff-mode
;; (when (and (eq major-mode ;; (when (and (eq major-mode
@@ -849,7 +850,7 @@ found, otherwise returns nil."
:foreground nil :foreground nil
:background nil :background nil
:weight 'bold) :weight 'bold)
(set-face-foreground 'diff-index-face "blue")
(set-face-foreground 'diff-index "blue")
(set-face-attribute 'diff-hunk-header nil (set-face-attribute 'diff-hunk-header nil
:foreground "cyan" :foreground "cyan"
:weight 'normal) :weight 'normal)
@@ -857,14 +858,14 @@ found, otherwise returns nil."
;; :foreground "white" ;; :foreground "white"
:foreground nil :foreground nil
:weight 'normal) :weight 'normal)
(set-face-foreground 'diff-removed-face "red")
(set-face-foreground 'diff-added-face "green")
(set-face-background 'diff-removed-face nil)
(set-face-background 'diff-added-face nil)
(set-face-foreground 'diff-removed "red")
(set-face-foreground 'diff-added "green")
(set-face-background 'diff-removed nil)
(set-face-background 'diff-added nil)
(set-face-attribute 'diff-changed nil (set-face-attribute 'diff-changed nil
:foreground "magenta" :foreground "magenta"
:weight 'normal) :weight 'normal)
(set-face-attribute 'diff-refine-change nil
(set-face-attribute 'diff-refine-changed nil
:foreground nil :foreground nil
:background nil :background nil
:weight 'bold :weight 'bold


Loading…
Cancel
Save