theme-ambrevar.el 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ;;; This file enforces consistency in the visual style:
  2. ;;; - doc, here-doc, comments, strings are in the same taint.
  3. ;;; - search highlight, search lazy follow the same color code.
  4. ;;; - diffs (ediff, smerge, etc.) follow the same color code.
  5. ;;; To find the variable associated to a currently used color, place the cursor
  6. ;;; on it and call `describe-face'. Or browse the `list-faces-display'.
  7. ;;; General
  8. ;; (set-face-attribute 'default nil :foreground "white" :background "black")
  9. (set-face-attribute 'default nil :foreground "white smoke" :background "#101010")
  10. (set-face-background 'mouse "#777777") ; Darker mouse, less distracting.
  11. ;;; More readable but more space consuming; try on big screens.
  12. ;; (setq-default line-spacing 1)
  13. (set-face-background 'mode-line "white")
  14. ;; (set-face-foreground 'link "#00ffff")
  15. (set-face-underline 'link t)
  16. (set-face-foreground 'minibuffer-prompt "#00ffff")
  17. (set-face-background 'region "#191970")
  18. ;; (set-face-attribute 'isearch nil :foreground 'unspecified :background "#2f4f4f" :box "white")
  19. ;; (set-face-attribute 'lazy-highlight nil :inherit 'isearch :foreground 'unspecified :background 'unspecified :box nil)
  20. ;;; TODO: Highlight with box does not render well in Sx, ediff, occur, evil-search.
  21. ;; (set-face-attribute 'highlight nil :background 'unspecified :box "white")
  22. ;; (set-face-attribute 'error nil :foreground "red" :weight 'bold)
  23. ;;; Line numbers.
  24. ;;; Graphic version has a gray bar separating text from line
  25. ;;; numbers, so we can leave the background black.
  26. (if (display-graphic-p)
  27. (set-face-background 'shadow "black")
  28. (set-face-background 'shadow "#1c1c1c"))
  29. ;;; Whitespace mode
  30. (with-eval-after-load 'whitespace
  31. (set-face-background 'whitespace-space-after-tab "#a9a9a9")
  32. (set-face-background 'whitespace-indentation "#696969"))
  33. ;;; Ediff
  34. (with-eval-after-load 'ediff-init
  35. (set-face-attribute 'ediff-even-diff-A nil :inherit 'ediff-current-diff-A :foreground 'unspecified :background 'unspecified :box nil)
  36. (set-face-attribute 'ediff-odd-diff-A nil :inherit 'ediff-current-diff-A :foreground 'unspecified :background 'unspecified :box nil)
  37. (set-face-attribute 'ediff-even-diff-B nil :inherit 'ediff-current-diff-B :foreground 'unspecified :background 'unspecified :box nil)
  38. (set-face-attribute 'ediff-odd-diff-B nil :inherit 'ediff-current-diff-B :foreground 'unspecified :background 'unspecified :box nil)
  39. (set-face-attribute 'ediff-even-diff-C nil :inherit 'ediff-current-diff-C :foreground 'unspecified :background 'unspecified :box nil)
  40. (set-face-attribute 'ediff-odd-diff-C nil :inherit 'ediff-current-diff-C :foreground 'unspecified :background 'unspecified :box nil)
  41. (set-face-attribute 'ediff-current-diff-A nil :box "white")
  42. (set-face-attribute 'ediff-current-diff-B nil :box "white")
  43. (set-face-attribute 'ediff-current-diff-C nil :box "white"))
  44. ;;; Outline mode
  45. (with-eval-after-load 'outline
  46. ;; (set-face-attribute 'outline-1 nil :inherit 'font-lock-warning-face)
  47. (set-face-attribute 'outline-1 nil :weight 'bold :foreground "#CBAC42")
  48. (set-face-attribute 'outline-2 nil :weight 'bold :foreground "#7BBF11")
  49. (set-face-attribute 'outline-3 nil :weight 'bold :foreground "#BC684F")
  50. (set-face-attribute 'outline-4 nil :weight 'bold :foreground "#4C95BF")
  51. (set-face-attribute 'outline-5 nil :weight 'bold :foreground "SeaGreen")
  52. (set-face-attribute 'outline-6 nil :weight 'bold :foreground "DarkSlateGray4")
  53. (set-face-attribute 'outline-7 nil :weight 'bold :foreground "DarkSlateBlue")
  54. (set-face-attribute 'outline-8 nil :weight 'bold :foreground "Gold"))
  55. ;;; show-paren
  56. (with-eval-after-load 'paren
  57. ;; (set-face-background 'show-paren-match-face (face-background 'default)) ; Disable background color.
  58. (set-face-background 'show-paren-match "#555555")
  59. (set-face-foreground 'show-paren-match "#def")
  60. (set-face-attribute 'show-paren-match nil :weight 'extra-bold))
  61. ;;; Man pages
  62. (with-eval-after-load 'man
  63. (set-face-attribute 'Man-underline nil :foreground (face-foreground 'font-lock-string-face) :underline nil)
  64. (set-face-attribute 'Man-overstrike nil :foreground (face-foreground 'font-lock-comment-face) :weight 'normal))
  65. (with-eval-after-load 'woman
  66. (set-face-foreground 'woman-bold (face-foreground 'font-lock-comment-face)))
  67. ;; Rainbow delimiters
  68. (with-eval-after-load 'rainbow-delimiters
  69. ;; See https://yoo2080.wordpress.com/2013/09/08/living-with-rainbow-delimiters-mode/.
  70. ;; TODO: The color saturation metioned in the URL fails when running in daemon mode.
  71. ;; https://github.com/Fanael/rainbow-delimiters/issues/36
  72. (set-face-foreground 'rainbow-delimiters-depth-1-face "#fe1717")
  73. (set-face-foreground 'rainbow-delimiters-depth-2-face "#589cff")
  74. (set-face-foreground 'rainbow-delimiters-depth-3-face "#f1fe52")
  75. (set-face-foreground 'rainbow-delimiters-depth-4-face "#44ff4c")
  76. (set-face-foreground 'rainbow-delimiters-depth-5-face "#83b2ff")
  77. (set-face-foreground 'rainbow-delimiters-depth-6-face "#6161ff")
  78. (set-face-foreground 'rainbow-delimiters-depth-7-face "#35ff35")
  79. (set-face-foreground 'rainbow-delimiters-depth-8-face "#7ca8ff")
  80. (set-face-foreground 'rainbow-delimiters-depth-9-face "#50fec1")
  81. (set-face-attribute 'rainbow-delimiters-unmatched-face nil
  82. :foreground 'unspecified
  83. :inherit 'error
  84. :strike-through t))
  85. ;; Helm
  86. (with-eval-after-load 'helm
  87. (set-face-attribute 'helm-source-header nil :inherit 'header-line :height 'unspecified :background 'unspecified :foreground 'unspecified)
  88. (set-face-background 'helm-selection "#4f4f4f")
  89. (set-face-background 'helm-visible-mark "#2f2f2f")
  90. (set-face-foreground 'helm-visible-mark nil)
  91. (set-face-foreground 'helm-match "red")
  92. (set-face-attribute 'helm-buffer-file nil :background 'unspecified :foreground "white" :weight 'normal)
  93. (set-face-attribute 'helm-buffer-directory nil :background 'unspecified :foreground "#1e90ff" :weight 'bold)
  94. (set-face-attribute 'helm-ff-directory nil :background 'unspecified :foreground 'unspecified :weight 'unspecified :inherit 'helm-buffer-directory)
  95. (set-face-attribute 'helm-ff-file nil :background 'unspecified :foreground 'unspecified :weight 'unspecified :inherit 'helm-buffer-file)
  96. (set-face-foreground 'helm-grep-finish "#00AA00"))
  97. (provide 'theme-ambrevar)