From 1fb0bc5567d470e2a29d75570f7d06bf7fd20a92 Mon Sep 17 00:00:00 2001 From: Riley Eltrich Date: Mon, 19 Nov 2018 11:52:31 -0800 Subject: [PATCH] Add support for daemon-mode Emacs. --- nord-theme.el | 62 +++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/nord-theme.el b/nord-theme.el index f2dfb31..fb9fb4d 100644 --- a/nord-theme.el +++ b/nord-theme.el @@ -79,37 +79,37 @@ ;;;; Color Constants (let ((class '((class color) (min-colors 89))) - (nord0 (if (display-graphic-p) "#2E3440" nil)) - (nord1 (if (display-graphic-p) "#3B4252" "black")) - (nord2 (if (display-graphic-p) "#434C5E" "#434C5E")) - (nord3 (if (display-graphic-p) "#4C566A" "brightblack")) - (nord4 (if (display-graphic-p) "#D8DEE9" "#D8DEE9")) - (nord5 (if (display-graphic-p) "#E5E9F0" "white")) - (nord6 (if (display-graphic-p) "#ECEFF4" "brightwhite")) - (nord7 (if (display-graphic-p) "#8FBCBB" "cyan")) - (nord8 (if (display-graphic-p) "#88C0D0" "brightcyan")) - (nord9 (if (display-graphic-p) "#81A1C1" "blue")) - (nord10 (if (display-graphic-p) "#5E81AC" "brightblue")) - (nord11 (if (display-graphic-p) "#BF616A" "red")) - (nord12 (if (display-graphic-p) "#D08770" "brightyellow")) - (nord13 (if (display-graphic-p) "#EBCB8B" "yellow")) - (nord14 (if (display-graphic-p) "#A3BE8C" "green")) - (nord15 (if (display-graphic-p) "#B48EAD" "magenta")) - (nord-annotation (if (display-graphic-p) "#D08770" "brightyellow")) - (nord-attribute (if (display-graphic-p) "#8FBCBB" "cyan")) - (nord-class (if (display-graphic-p) "#8FBCBB" "cyan")) - (nord-comment (if (display-graphic-p) (nord-theme--brightened-comment-color nord-comment-brightness) "brightblack")) - (nord-escape (if (display-graphic-p) "#D08770" "brightyellow")) - (nord-method (if (display-graphic-p) "#88C0D0" "brightcyan")) - (nord-keyword (if (display-graphic-p) "#81A1C1" "blue")) - (nord-numeric (if (display-graphic-p) "#B48EAD" "magenta")) - (nord-operator (if (display-graphic-p) "#81A1C1" "blue")) - (nord-preprocessor (if (display-graphic-p) "#5E81AC" "brightblue")) - (nord-punctuation (if (display-graphic-p) "#D8DEE9" "#D8DEE9")) - (nord-regexp (if (display-graphic-p) "#EBCB8B" "yellow")) - (nord-string (if (display-graphic-p) "#A3BE8C" "green")) - (nord-tag (if (display-graphic-p) "#81A1C1" "blue")) - (nord-variable (if (display-graphic-p) "#D8DEE9" "#D8DEE9")) + (nord0 (if (or (daemonp) (display-graphic-p)) "#2E3440" nil)) + (nord1 (if (or (daemonp) (display-graphic-p)) "#3B4252" "black")) + (nord2 (if (or (daemonp) (display-graphic-p)) "#434C5E" "#434C5E")) + (nord3 (if (or (daemonp) (display-graphic-p)) "#4C566A" "brightblack")) + (nord4 (if (or (daemonp) (display-graphic-p)) "#D8DEE9" "#D8DEE9")) + (nord5 (if (or (daemonp) (display-graphic-p)) "#E5E9F0" "white")) + (nord6 (if (or (daemonp) (display-graphic-p)) "#ECEFF4" "brightwhite")) + (nord7 (if (or (daemonp) (display-graphic-p)) "#8FBCBB" "cyan")) + (nord8 (if (or (daemonp) (display-graphic-p)) "#88C0D0" "brightcyan")) + (nord9 (if (or (daemonp) (display-graphic-p)) "#81A1C1" "blue")) + (nord10 (if (or (daemonp) (display-graphic-p)) "#5E81AC" "brightblue")) + (nord11 (if (or (daemonp) (display-graphic-p)) "#BF616A" "red")) + (nord12 (if (or (daemonp) (display-graphic-p)) "#D08770" "brightyellow")) + (nord13 (if (or (daemonp) (display-graphic-p)) "#EBCB8B" "yellow")) + (nord14 (if (or (daemonp) (display-graphic-p)) "#A3BE8C" "green")) + (nord15 (if (or (daemonp) (display-graphic-p)) "#B48EAD" "magenta")) + (nord-annotation (if (or (daemonp) (display-graphic-p)) "#D08770" "brightyellow")) + (nord-attribute (if (or (daemonp) (display-graphic-p)) "#8FBCBB" "cyan")) + (nord-class (if (or (daemonp) (display-graphic-p)) "#8FBCBB" "cyan")) + (nord-comment (if (or (daemonp) (display-graphic-p)) (nord-theme--brightened-comment-color nord-comment-brightness) "brightblack")) + (nord-escape (if (or (daemonp) (display-graphic-p)) "#D08770" "brightyellow")) + (nord-method (if (or (daemonp) (display-graphic-p)) "#88C0D0" "brightcyan")) + (nord-keyword (if (or (daemonp) (display-graphic-p)) "#81A1C1" "blue")) + (nord-numeric (if (or (daemonp) (display-graphic-p)) "#B48EAD" "magenta")) + (nord-operator (if (or (daemonp) (display-graphic-p)) "#81A1C1" "blue")) + (nord-preprocessor (if (or (daemonp) (display-graphic-p)) "#5E81AC" "brightblue")) + (nord-punctuation (if (or (daemonp) (display-graphic-p)) "#D8DEE9" "#D8DEE9")) + (nord-regexp (if (or (daemonp) (display-graphic-p)) "#EBCB8B" "yellow")) + (nord-string (if (or (daemonp) (display-graphic-p)) "#A3BE8C" "green")) + (nord-tag (if (or (daemonp) (display-graphic-p)) "#81A1C1" "blue")) + (nord-variable (if (or (daemonp) (display-graphic-p)) "#D8DEE9" "#D8DEE9")) (nord-region-highlight-foreground (if (or (string= nord-region-highlight "frost") (string= nord-region-highlight "snowstorm")) "#2E3440" nil))