dark-emacs-theme.el 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. (deftheme dark-emacs
  2. "Dark Emacs is designed to give the same look and feel as
  3. `emacs --no-window-system'. It is based on a theme made by the
  4. emacswiki user, ZWZ. The original can be found at
  5. http://www.emacswiki.org/emacs/zwz.
  6. It also tries to not interfere with the faces when emacs is
  7. running in a tty (since that is the goal in the first place).
  8. There are some `org-mode' related faces defined for TODO
  9. keywords and special tags as well.
  10. Color theme by Suvayu Ali. Created 2012-04-28.")
  11. (custom-theme-set-variables
  12. 'dark-emacs
  13. '(org-todo-keyword-faces
  14. '(("DBUG" . (:background "gold" :foreground "indianred3" :weight bold))
  15. ("LEAK" . (:background "gold" :foreground "indianred3" :weight bold))
  16. ("SEGF" . (:background "gold" :foreground "indianred3" :weight bold))
  17. ("CNCL" . (:background "snow3" :foreground "black" :weight bold))
  18. ))
  19. '(org-tag-faces
  20. '(("PROJ" . (:background "indianred3" :foreground "cornsilk2" :weight bold))
  21. ))
  22. )
  23. ;; Customise using DISPLAY types if you wish to use both dark and
  24. ;; light backgrounds alternatively. This also takes values like tty
  25. ;; and nt to describe text terminals and windows machines. For more
  26. ;; details see:
  27. ;; - (info "(elisp)Defining Faces")
  28. ;; - (describe-function 'custom-theme-set-faces)
  29. (custom-theme-set-faces
  30. 'dark-emacs
  31. '(bold ((t (:weight bold :inherit (default)))))
  32. '(bold-italic ((t (:weight bold :inherit (italic)))))
  33. '(completions-common-part ((t (:foreground "forest green"))))
  34. '(completions-first-difference ((t (:weight bold :foreground "salmon"))))
  35. '(cursor ((((type graphic)) (:background "red")))
  36. nil "All other attributes are ignored; in -nw mode depends on tty")
  37. '(default ((((type graphic)) (:foreground "ivory2" :background "black"))))
  38. '(diff-added ((default (:inherit diff-changed))
  39. (((type tty) (class color) (min-colors 256)) (:inherit diff-changed :background "color-22"))
  40. (((type graphic)) (:inherit diff-changed :background "#335533"))))
  41. '(diff-file-header ((t (:inherit diff-header :weight bold))))
  42. '(diff-header ((default (:inherit diff-header))
  43. (((type tty) (class color) (min-colors 256)) (:background "grey70"))
  44. (((type graphic)) (:background "grey45"))))
  45. '(diff-indicator-added ((t (:inherit diff-added :weight bold))))
  46. '(diff-indicator-removed ((t (:inherit diff-removed :weight bold))))
  47. '(diff-refine-added ((default (:inherit diff-refine-change))
  48. (((type tty) (class color) (min-colors 256)) (:inherit diff-refine-change :background "color-40"))
  49. (((type graphic)) (:inherit diff-refine-change :background "#22aa22"))))
  50. '(diff-refine-removed ((default (:inherit diff-refine-change))
  51. (((type tty) (class color) (min-colors 256)) (:inherit diff-refine-change :background "color-196"))
  52. (((type graphic)) (:inherit diff-refine-change :background "#aa2222"))))
  53. '(diff-removed ((default (:inherit diff-changed))
  54. (((type tty) (class color) (min-colors 256)) (:inherit diff-changed :background "color-52"))
  55. (((type graphic)) (:inherit diff-changed :background "#553333"))))
  56. '(ediff-current-diff-A ((t (:inherit diff-removed))))
  57. '(ediff-current-diff-B ((t (:inherit diff-added))))
  58. '(ediff-current-diff-C ((((type tty) (class color) (min-colors 256)) (:background "#afaf5f"))))
  59. ;; TODO: reconsider what needs to be done for inactive hunks, A & B
  60. ;; buffers light-dark offset or in tandem?
  61. '(ediff-even-diff-B ((t (:background "dim gray" :foreground "White"))))
  62. '(ediff-fine-diff-A ((t (:inherit diff-refine-removed))))
  63. '(ediff-fine-diff-B ((t (:inherit diff-refine-added))))
  64. '(ediff-fine-diff-C ((((type tty) (class color) (min-colors 256)) (:background "#afaf00"))))
  65. '(ediff-odd-diff-A ((t (:background "dim gray" :foreground "White"))))
  66. '(ediff-odd-diff-C ((((type tty) (class color) (min-colors 256)) (:background "dim gray" :foreground "White"))))
  67. '(font-latex-sectioning-5-face ((default (:foreground "DodgerBlue1" :weight semi-bold))
  68. (((type tty) (class color) (min-colors 256)) (:foreground "#0087ff" :weight bold))))
  69. '(font-lock-builtin-face ((((min-colors 88)) (:foreground "gold" :inherit (default)))))
  70. '(font-lock-comment-face ((((type graphic)) (:foreground "cyan3" :inherit (italic)))
  71. (((min-colors 88)) (:foreground "#9e9e9e"))))
  72. '(font-lock-constant-face ((t (:foreground "LightGoldenrod2" :inherit (default)))))
  73. '(font-lock-function-name-face ((((type graphic)) (:weight bold :foreground "white" :inherit (default)))
  74. (((type tty)) (:foreground "brightblue" :weight bold))))
  75. '(font-lock-keyword-face ((((type graphic)) (:foreground "firebrick1" :inherit (italic)))
  76. (((type tty) (class color) (min-colors 88)) (:foreground "#ff0000"))))
  77. '(font-lock-preprocessor-face ((t (:foreground "IndianRed3" :inherit (font-lock-builtin-face)))))
  78. '(font-lock-string-face ((((type graphic)) (:foreground "lawn green" :inherit (default)))
  79. (((type tty)) (:foreground "green"))))
  80. '(font-lock-type-face ((t (:foreground "orchid" :inherit (italic)))))
  81. '(font-lock-variable-name-face ((((type graphic)) (:foreground "orange" :inherit (bold)))
  82. (((type tty)) (:inherit default :foreground "DarkOrange1"))))
  83. '(font-lock-warning-face ((((type graphic)) (:foreground "Red1" :inherit (bold)))
  84. (((type tty)) (:inherit (error bold)))))
  85. '(highlight ((default (:background "blue" :inherit (default)))
  86. (((type graphic)) (:foreground "yellow" :background "blue" :inherit (default)))))
  87. '(info-header-xref ((((type tty)) (:inherit info-xref :foreground "black"))))
  88. '(info-menu-header ((t (:bold t :family "Sans Serif" :foreground "tomato" :weight bold))))
  89. '(info-node ((t (:italic t :bold t :foreground "gold" :slant italic :weight bold))))
  90. '(info-xref ((t (:inherit link :foreground "powder blue" :weight bold))))
  91. '(info-xref-visited ((t (:foreground "violet" :underline t :weight bold))))
  92. '(italic ((((supports :slant italic))
  93. (:slant italic :foreground "blanched almond" :inherit (default)))))
  94. '(link ((t (:foreground "cyan" :underline t :weight extra-bold))))
  95. '(link-visited ((t (:foreground "violet" :inherit link))))
  96. '(match ((((type graphic)) (:background "RoyalBlue3"))
  97. (((type tty)) (:background "brightyellow" :foreground "black"))))
  98. '(message-cited-text ((t :foreground "LightPink1")))
  99. '(message-header-cc ((t (:foreground "lime green"))))
  100. '(message-header-name ((t (:foreground "cornflower blue"))))
  101. '(message-header-other ((t (:foreground "dark orange"))))
  102. '(message-header-subject ((t (:inherit message-header-name :weight bold))))
  103. '(message-header-to ((t (:inherit message-header-subject))))
  104. '(message-header-xheader ((t (:foreground "sea green"))))
  105. '(minibuffer-prompt ((t (:foreground "dark cyan" :weight bold))))
  106. '(mode-line ((((type graphic)) (:foreground "blue" :background "azure"
  107. :box (:line-width -1 :color nil :style released-button)))
  108. (((type tty)) (:background "grey75" :foreground "black"))))
  109. '(mode-line-buffer-id ((((type graphic)) (:weight bold :foreground "red" :background "ghost white"))))
  110. '(mode-line-inactive ((t (:inherit mode-line :background "grey30" :foreground "grey80"))))
  111. '(notmuch-message-summary-face ((((type graphic)) (:background "#303030"))
  112. (((type tty)) (:background "brightblack"))))
  113. '(org-agenda-current-time ((t (:background "snow" :foreground "DodgerBlue4" :weight bold :inherit org-time-grid))))
  114. '(org-code ((default (:inherit shadow))
  115. (((type tty) (class color) (min-colors 256)) (:foreground "color-28" :inherit shadow))
  116. (((type graphic)) (:foreground "ForestGreen" :inherit shadow))))
  117. '(org-column ((((type graphic)) (:background "grey30"))
  118. (((type tty)) (:background "grey20"))))
  119. '(org-document-info ((default (:foreground "pale turquoise"))
  120. (((type tty) (class color) (min-colors 256)) (:foreground "#0000ff"))))
  121. '(org-document-title ((default (:foreground "pale turquoise" :weight bold))
  122. (((type tty) (class color) (min-colors 256)) (:weight bold :foreground "#0000ff"))))
  123. '(org-done ((t (:background "ForestGreen" :foreground "DarkSeaGreen2" :slant oblique :weight bold))))
  124. '(org-inlinetask ((t (:inherit org-level-8 :slant oblique))))
  125. '(org-level-3 ((t (:inherit outline-3 :foreground "sandy brown"))))
  126. '(org-level-4 ((default (:inherit outline-4))
  127. (((type tty) (min-colors 256)) (:inherit outline-4 :foreground "#00d7af"))))
  128. '(org-table ((default (:foreground "LightSkyBlue"))
  129. (((type tty) (class color) (min-colors 256)) (:foreground "#0000ff"))))
  130. '(org-todo ((t (:background "royalblue4" :foreground "thistle" :weight bold))))
  131. '(region ((((type graphic)) (:background "blue3"))
  132. (((type tty) (class color) (min-colors 256)) (:background "#0000af"))))
  133. '(rst-level-1-face ((t (:background "grey85" :foreground "black"))))
  134. '(secondary-selection ((((type graphic)) (:background "blue")))
  135. nil "Depends on tty in -nw mode")
  136. '(show-paren-match ((t (:background "SlateBlue1"))))
  137. '(show-paren-mismatch ((t (:foreground "white" :background "magenta"))))
  138. '(underline ((((supports :underline t))
  139. (:underline t :foreground "green" :inherit (default)))))
  140. '(woman-bold ((t (:weight bold :foreground "forest green"))))
  141. '(woman-italic ((t (:slant italic :foreground "salmon"))))
  142. ;; custom faces go after this
  143. ;; '(sa-global-todo-face ((t (:background "royalblue4" :foreground "thistle" :weight bold)))
  144. ;; t "Face for TODO keywords globally.")
  145. )
  146. (provide-theme 'dark-emacs)